GH_Point
ReferencesConstructors
Properties
IsValidWhyNot
#Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
Implements: IsValidWhyNot
QC_Type
#[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public GH_QuickCastType QC_Type { get; }
Implements: QC_Type
ReferenceData
#Gets or sets the reference data of this point geometry.
Remarks: Reference data can be Null
Methods
BakeGeometry
#Parameters:
| doc (RhinoDoc) | |
| att (ObjectAttributes) | |
| obj_guid (ref Guid) |
Implements: BakeGeometry
CreateFromCoordinate
#Create a new point geometry instance based on a fixed coordinate
Remarks: This 'constructor' merely sets fields, it doesn't load the geometry and it doesn't perform validity checking.
Parameters:
| pt (Point3d) | The coordinate for the point |
CreateFromCurveDistance
#Create new point geometry instance based on a curve distance parameter
Remarks: This 'constructor' merely sets fields, it doesn't load the geometry and it doesn't perform validity checking.
CreateFromCurveRatio
#Create new point geometry instance based on a curve parameter ratio
CreateFromEdgeDistance
#Create new point geometry instance based on a curve distance parameter
Remarks: This 'constructor' merely sets fields, it doesn't load the geometry and it doesn't perform validity checking.
CreateFromEdgeRatio
#Create new point geometry instance based on an edge parameter ratio
CreateFromPointObject
#Create a new point geometry instance based on point object ID. Technically this now also accepts Dot object IDs.
Remarks: This 'constructor' merely sets fields, it doesn't load the geometry and it doesn't perform validity checking.
Parameters:
| id (Guid) | The identifier of the point object |
CreateFromSurfaceParam
#Create new point geometry instance based on a curve distance parameter
Remarks: This 'constructor' merely sets fields, it doesn't load the geometry and it doesn't perform validity checking.
EnsureReferenceData
#public void EnsureReferenceData()
Creates new Reference data if it doesn't already exists
LoadGeometry
#Parameters:
| doc (RhinoDoc) |
Implements: LoadGeometry
ReferenceIndex
#Retrieve the index of the point reference data.
Remarks: If there exists no reference data, -1 is returned.
Returns: The index of the reference data. This index describes the sub-object of the reference.
ReferenceIndex
#Sets the index of the point reference data.
Remarks: If there is no reference data, this function will create a new instance.
Parameters:
| new_index (int) | The index to set. This index describes the sub-object of the reference. |
ReferenceParam
#Retrieve the indexed param of the point reference data.
Remarks: If there exists no reference data, NaN is returned.
Parameters:
| index (int) | Index of parameter. Only 0 and 1 are valid values. |
Returns: The indexed param of the reference data.
ReferenceParam
#Sets the index of the point reference data.
ReferenceType
#Retrieve the reference type of this point object.
Returns: The reference type as specified by the Reference Data. If there is no reference data, either Unset or Coordinate is returned depending on whether m_Point is a null reference.
ReferenceType
#Sets the type of the point reference data.
Remarks: If there is no reference data, this function will create a new instance.
Parameters:
| new_type (GH_PointRefType) | The new type, if type = Coordinate or Unset, then the Reference data will be erased. |
SetReferenceParams
#Sets both param values of the point reference