Class MeshPlaneCut
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class MeshPlaneCut
Constructors
MeshPlaneCut(DMesh3, Vector3d, Vector3d)
Cut mesh with plane. Assumption is that plane normal is Z value.
Declaration
public MeshPlaneCut(DMesh3 mesh, Vector3d origin, Vector3d normal)
Parameters
Fields
CollapseDegenerateEdgesOnCut
Declaration
public bool CollapseDegenerateEdgesOnCut
Field Value
CutFaceSet
Declaration
public MeshFaceSelection CutFaceSet
Field Value
CutLoops
Declaration
public List<EdgeLoop> CutLoops
Field Value
CutLoopsFailed
Declaration
public bool CutLoopsFailed
Field Value
CutSpans
Declaration
public List<EdgeSpan> CutSpans
Field Value
DegenerateEdgeTol
Declaration
public double DegenerateEdgeTol
Field Value
FoundOpenSpans
Declaration
public bool FoundOpenSpans
Field Value
LoopFillTriangles
Declaration
public List<int[]> LoopFillTriangles
Field Value
Mesh
Declaration
Field Value
PlaneNormal
Declaration
public Vector3d PlaneNormal
Field Value
PlaneOrigin
Declaration
public Vector3d PlaneOrigin
Field Value
Methods
collapse_degenerate_edges(HashSet<Int32>, HashSet<Int32>)
Declaration
protected void collapse_degenerate_edges(HashSet<int> OnCutEdges, HashSet<int> ZeroEdges)
Parameters
Type |
Name |
Description |
HashSet<Int32> |
OnCutEdges |
|
HashSet<Int32> |
ZeroEdges |
|
Cut()
Declaration
public virtual bool Cut()
Returns
FillHoles(Int32)
A quick-and-dirty hole filling. If you want something better,
process the returned CutLoops yourself.
Declaration
public bool FillHoles(int constantGroupID = -1)
Parameters
Type |
Name |
Description |
Int32 |
constantGroupID |
|
Returns
Validate()
Declaration
public virtual ValidationStatus Validate()
Returns