Table of Contents

Class ContourHelper

Namespace
HelixToolkit.Geometry
Assembly
HelixToolkit.Geometry.dll

Provides functionality to calculate a contour slice through a 3 vertex facet.(Modified from HelixToolkit.Wpf version)

public sealed class ContourHelper
Inheritance
ContourHelper
Inherited Members

Remarks

See CONREC for further information.

Constructors

ContourHelper(Plane, MeshGeometry3D)

Initializes a new instance of the ContourHelper class.

public ContourHelper(Plane plane, MeshGeometry3D originalMesh)

Parameters

plane Plane

The plane

originalMesh MeshGeometry3D

The original mesh

ContourHelper(Vector3, Vector3, MeshGeometry3D)

Initializes a new instance of the ContourHelper class.

public ContourHelper(Vector3 planeOrigin, Vector3 planeNormal, MeshGeometry3D originalMesh)

Parameters

planeOrigin Vector3

The plane origin.

planeNormal Vector3

The plane normal.

originalMesh MeshGeometry3D

The original mesh.

Methods

ContourFacet(int, int, int, out Vector3[], out Vector3[], out Vector2[], out int[])

Create a contour slice through a 3 vertex facet.

public void ContourFacet(int index0, int index1, int index2, out Vector3[] newPositions, out Vector3[] newNormals, out Vector2[] newTextureCoordinates, out int[] triangleIndices)

Parameters

index0 int

The 0th point index.

index1 int

The 1st point index.

index2 int

The 2nd point index.

newPositions Vector3[]

Any new positions that are created, when the contour plane slices through the vertex.

newNormals Vector3[]

Any new normal vectors that are created, when the contour plane slices through the vertex.

newTextureCoordinates Vector2[]

Any new texture coordinates that are created, when the contour plane slices through the vertex.

triangleIndices int[]

Triangle indices for the triangle(s) above the plane.