Represents a tri or quad mesh face. GH_MeshFace works similar to the OpenNURBS OnMeshFace class.
Constructors
GH_MeshFace
#public GH_MeshFace(GH_MeshFace other)
Create a duplicate of another mesh face
Parameters:
| other (GH_MeshFace) | Mesh face to duplicate |
GH_MeshFace
#Create a quadrangular mesh face from 4 corners indices.
GH_MeshFace
#Create a triangular mesh face from 3 corners indices.
Fields
m_value
protected T m_value
Properties
IsValid
#Test for validity. No negative indices are allowed and only C and D are allowed to be identical.
Overrides: GH_Goo<T>.IsValid
IsValidWhyNot
#Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
Overrides: GH_Goo<T>.IsValidWhyNot
Value
public virtual T Value { get; set; }
Gets or sets the internal data.
Methods
CastFrom
#Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
Parameters:
| source (object) |
Overrides: GH_Goo<T>.CastFrom
CastTo<T>
#Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
Parameters:
| target (ref T) |
Overrides: GH_Goo<T>.CastTo
EmitProxy
#Returns a proxy that represents this mesh face. Do not call this function unless you're
Overrides: GH_Goo<T>.EmitProxy
ScriptVariable
This function will be called when the local IGH_Goo instance disappears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
Returns: The default implementation of this function returns the Value instance.
Implements: ScriptVariable
ToString
#Format the mesh face using default grasshopper formatting logic.
Overrides: GH_Goo<T>.ToString