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
planePlaneThe plane
originalMeshMeshGeometry3DThe original mesh
ContourHelper(Vector3, Vector3, MeshGeometry3D)
Initializes a new instance of the ContourHelper class.
public ContourHelper(Vector3 planeOrigin, Vector3 planeNormal, MeshGeometry3D originalMesh)
Parameters
planeOriginVector3The plane origin.
planeNormalVector3The plane normal.
originalMeshMeshGeometry3DThe 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
index0intThe 0th point index.
index1intThe 1st point index.
index2intThe 2nd point index.
newPositionsVector3[]Any new positions that are created, when the contour plane slices through the vertex.
newNormalsVector3[]Any new normal vectors that are created, when the contour plane slices through the vertex.
newTextureCoordinatesVector2[]Any new texture coordinates that are created, when the contour plane slices through the vertex.
triangleIndicesint[]Triangle indices for the triangle(s) above the plane.