public class GH_MeshFace : GH_Goo<MeshFace>
Represents a tri or quad mesh face. GH_MeshFace works similar to the OpenNURBS OnMeshFace class.

Constructors

GH_MeshFace

#
Default constructor. Sets all corners to 0.
public GH_MeshFace()

GH_MeshFace

#
Create a duplicate of another mesh face
public GH_MeshFace(
GH_MeshFace
other
Mesh face to duplicate
)

GH_MeshFace

#
Create a quadrangular mesh face from 4 corners indices.
public GH_MeshFace(
nA,
First corner index
nB,
Second corner index
nC,
Third corner index
nD
Fourth corner index
)

GH_MeshFace

#
Create a triangular mesh face from 3 corners indices.
public GH_MeshFace(
nA,
First corner index
nB,
Second corner index
nC
Third corner index
)

GH_MeshFace

#
Create a duplicate of another mesh face.
public GH_MeshFace(
other
Mesh face to duplicate.
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

IsValid

#
Test for validity. No negative indices are allowed and only C and D are allowed to be identical.
public override bool IsValid { get; }

IsValidWhyNot

#
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
public override string IsValidWhyNot { get; }

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

Gets or sets the internal data.
public virtual T Value { get; set; }
inherited fromGH_Goo<T>

Methods

CastFrom

#
Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
public override bool CastFrom(
source
)

CastTo<T>

#
Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
public override bool CastTo<T>(
ref T
target
)
GH_Goo<T>.CastTo

Duplicate

#
Create a duplicate of this Mesh face.
public override IGH_Goo Duplicate()

DuplicateMeshFace

#
Create a duplicate of this Mesh face.
public GH_MeshFace DuplicateMeshFace()

EmitProxy

#
Returns a proxy that represents this mesh face. Do not call this function unless you're
public override IGH_GooProxy EmitProxy()

Read

#
public override bool Read(
reader
)
GH_Goo<T>.Read

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.
public virtual object ScriptVariable()
inherited fromGH_Goo<T>
The default implementation of this function returns the Value instance.
ScriptVariable

ToString

#
Format the mesh face using default grasshopper formatting logic.
public override string ToString()

Write

#
public override bool Write(
writer
)
GH_Goo<T>.Write