Class DcurveExtensions
Inherited Members
Namespace: Virgis
Assembly: cs.temp.dll.dll
Syntax
public static class DcurveExtensions
Methods
Center(DCurve3)
Estimates the 3D centroid of a DCurve
Declaration
public static Vector3d Center(this DCurve3 curve)
Parameters
Type | Name | Description |
---|---|---|
DCurve3 | curve | DCurve |
Returns
Type | Description |
---|---|
Vector3d | Vector3[] |
CenterMark(DCurve3)
Estimates the nearest point on a DCurve to the centroid of that DCurve
Declaration
public static Vector3d CenterMark(this DCurve3 curve)
Parameters
Type | Name | Description |
---|---|---|
DCurve3 | curve | g3.DCurve |
Returns
Type | Description |
---|---|
Vector3d | g3.Vector3d Centroid |
NearestSegment(DCurve3, Vector3d)
Finds the Segment from the DCurve3 closes to the position
Declaration
public static int NearestSegment(this DCurve3 curve, Vector3d position)
Parameters
Type | Name | Description |
---|---|---|
DCurve3 | curve | DCurve3 |
Vector3d | position | Vector3d |
Returns
Type | Description |
---|---|
Int32 | Integer Sgement index |
Vector3(g3.DCurve3, Vector3[], Boolean)
Creates g3.DCurve from Vector3[]
Declaration
public static void Vector3(this g3.DCurve3 curve, Vector3[] verteces, bool bClosed)
Parameters
Type | Name | Description |
---|---|---|
g3.DCurve3 | curve | DCurve |
Vector3[] | verteces | Vextor3[] |
Boolean | bClosed | whether the line is closed |