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

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

GH_MeshFace

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

GH_MeshFace

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

GH_MeshFace

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

GH_MeshFace

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

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

IsValid

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

IsValidWhyNot

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

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

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

Methods

CastFrom

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

CastTo<T>

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

Duplicate

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

DuplicateMeshFace

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

EmitProxy

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

Read

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

ScriptVariable

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

ToString

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

Write

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