Click or drag to resize

RhinoMesh Class

Rhino mesh wrapper which implements IMesh.
Inheritance Hierarchy
SystemObject
  Karamba.GHopper.GeometryRhinoMesh

Namespace:  Karamba.GHopper.Geometry
Assembly:  karambaGH (in karambaGH.dll) Version: 1.15.0.0 (1.15.0.0)
Syntax
[SerializableAttribute]
public class RhinoMesh : IMesh, IReadonlyMesh

The RhinoMesh type exposes the following members.

Constructors
  NameDescription
Public methodRhinoMesh
Create empty mesh.
Public methodRhinoMesh(Mesh)
Create rhino mesh wrapper. The rhino mesh must not be accessed from outside while the
Top
Properties
  NameDescription
Public propertyContainsQuads
Public propertyFaces
Public propertyIsValid
True in case the mesh is valid
Public propertyMesh
Get underlying mesh.
Public propertyNormals
Public propertyVertexColors
Public propertyVertices
Top
Methods
  NameDescription
Public methodAddFace(Face3)
Public methodAddFace(Int32, Int32, Int32)
Public methodAddFace(Int32, Int32, Int32, Int32)
Public methodAddVertex(Point3)
Public methodAddVertex(Double, Double, Double)
Adds a new vertex to the end of the Vertex list.
Public methodAddVertexColor
Public methodcharacteristicFaceSize
determine the characteristic mesh face size
Public methodCleaned
Create a new mesh based on another mesh doing a sanity check and removing faces with a smaller area than lim_area
Public methodClearVertexColors
Public methodClosestMeshPoint
/// Gets the point on the mesh that is closest to a given test point. Similar to the ClosestPoint function except this returns a MeshPoint class which includes extra information beyond just the location of the closest point.
Public methodComputeNormals
compute the normals of all faces
Public methodComputeVertexNormals
Public methodCopy
Public methoddoubleFaceArea
determine the raw face normal whose length is double the area of the mesh face mesh face for which to calculate the area

Return Value

Type: 
normal vector to face whose length is double the face area
Public methodDuplicateMesh
make a deep copy of the mesh
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodfaceArea(Int32, Vector3)
determine the area of a mesh face
Public methodfaceArea(Face3, Vector3)
Public methodfaceCOG
determine the center of gravity of a mesh face
Public methodfaceNormal
calculate the normal of the face. works for triangles and quads?
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlip
Reverses the direction of the mesh.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVertex
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetVertex(Int32, Point3)
Public methodSetVertex(Int32, Double, Double, Double)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTriangulated
Top
Extension Methods
  NameDescription
Public Extension MethodConvert
Convert to mesh to rhino mesh. If the mesh is already of type RhinoMesh, the underlying mesh Mesh is returned without creating a copy of it. Otherwise, a new rhino mesh instance is created from the supplied mesh. The following attributes/properties are taken into account. (1) Mesh topology (vertices, faces) (2) Vertex normals. (3) Vertex colors.
(Defined by MeshExtensions.)
Top
See Also