Class PlanarComplex
Inheritance
PlanarComplex
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class PlanarComplex
Constructors
PlanarComplex()
Declaration
Fields
AngleAccuracyDeg
Declaration
public double AngleAccuracyDeg
Field Value
DistanceAccuracy
Declaration
public double DistanceAccuracy
Field Value
MinimizeSampling
Declaration
public bool MinimizeSampling
Field Value
SpacingT
Declaration
Field Value
Properties
ElementCount
Declaration
public int ElementCount { get; }
Property Value
Methods
Add(IParametricCurve2d)
Declaration
public PlanarComplex.Element Add(IParametricCurve2d curve)
Parameters
Returns
Add(Polygon2d)
Declaration
public PlanarComplex.Element Add(Polygon2d poly)
Parameters
Returns
Add(PolyLine2d)
Declaration
public PlanarComplex.Element Add(PolyLine2d pline)
Parameters
Returns
AllSegmentsItr()
Declaration
public IEnumerable<ComplexSegment2d> AllSegmentsItr()
Returns
Append(PlanarComplex)
Declaration
public void Append(PlanarComplex append)
Parameters
Bounds()
Declaration
public AxisAlignedBox2d Bounds()
Returns
Clone()
Declaration
public PlanarComplex Clone()
Returns
ConvertToLoop(PlanarComplex.SmoothCurveElement, Double)
Declaration
public void ConvertToLoop(PlanarComplex.SmoothCurveElement curve, double tolerance = 1E-08)
Parameters
CountType(IMultiCurve2d, Type)
Declaration
public int CountType(IMultiCurve2d curve, Type t)
Parameters
Returns
CountType(Type)
Declaration
public int CountType(Type t)
Parameters
Type |
Name |
Description |
Type |
t |
|
Returns
CurvesItr()
Declaration
public IEnumerable<PlanarComplex.SmoothCurveElement> CurvesItr()
Returns
ElementsItr()
Declaration
public IEnumerable<PlanarComplex.Element> ElementsItr()
Returns
EndpointsItr()
Declaration
public IEnumerable<ComplexEndpoint2d> EndpointsItr()
Returns
FindClosedLoops(Double)
Declaration
public PlanarComplex.ClosedLoopsInfo FindClosedLoops(double fSimplifyDeviationTol = 0.1)
Parameters
Type |
Name |
Description |
Double |
fSimplifyDeviationTol |
|
Returns
FindOpenCurves(Double)
Declaration
public PlanarComplex.OpenCurvesInfo FindOpenCurves(double fSimplifyDeviationTol = 0.1)
Parameters
Type |
Name |
Description |
Double |
fSimplifyDeviationTol |
|
Returns
FindSolidRegions(PlanarComplex.FindSolidsOptions)
Declaration
public PlanarComplex.SolidRegionInfo FindSolidRegions(PlanarComplex.FindSolidsOptions options)
Parameters
Returns
FindSolidRegions(Double, Boolean)
Declaration
public PlanarComplex.SolidRegionInfo FindSolidRegions(double fSimplifyDeviationTol = 0.1, bool bWantCurveSolids = true)
Parameters
Type |
Name |
Description |
Double |
fSimplifyDeviationTol |
|
Boolean |
bWantCurveSolids |
|
Returns
HasOpenCurves()
Declaration
public bool HasOpenCurves()
Returns
JoinElements(ComplexEndpoint2d, ComplexEndpoint2d, Double)
Declaration
public bool JoinElements(ComplexEndpoint2d a, ComplexEndpoint2d b, double loop_tolerance = 1E-08)
Parameters
Returns
LoopLeafComponentsItr()
iterate through "leaf" curves, ie all the IParametricCurve2D's
embedded in loops that do not contain any child curves
Declaration
public IEnumerable<IParametricCurve2d> LoopLeafComponentsItr()
Returns
LoopsItr()
Declaration
public IEnumerable<PlanarComplex.SmoothLoopElement> LoopsItr()
Returns
PrintStats(String)
Declaration
public void PrintStats(string label = "")
Parameters
Type |
Name |
Description |
String |
label |
|
Remove(PlanarComplex.Element)
Declaration
public void Remove(PlanarComplex.Element e)
Parameters
Reverse(PlanarComplex.SmoothCurveElement)
Declaration
public void Reverse(PlanarComplex.SmoothCurveElement c)
Parameters
SplitAllLoops()
Declaration
public void SplitAllLoops()
Declaration
public void Transform(ITransform2 xform, bool bApplyToSources, bool bRecomputePolygons = false)
Parameters