Click or drag to resize

Mesh2 Class

a sample implementation of a 2d mesh.
Inheritance Hierarchy
SystemObject
  Karamba.GeometryMesh2

Namespace:  Karamba.Geometry
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 2.2.0.4 (2.2.0.4)
Syntax
public class Mesh2 : IMesh2

The Mesh2 type exposes the following members.

Constructors
  NameDescription
Public methodMesh2(Mesh2)
Initializes a new instance of the Mesh2 class. Create mesh based on another mesh.
Public methodMesh2(Int32, Int32)
Initializes a new instance of the Mesh2 class. Create mesh with an estimated number of vertices and faces.
Public methodMesh2(IReadOnlyListPoint2, IReadOnlyListFace3)
Initializes a new instance of the Mesh2 class. Create mesh based on faces and vertices.
Public methodMesh2(IReadOnlyListTuplePoint2, Int32, Int32, Double, ListIReadOnlyListTuplePoint2, Int32, FuncDouble, Double, Double, IReadOnlyListTuplePoint2, Int32, Double, Double, Double)
Initializes a new instance of the Mesh2 class. mesh a 2d boundary.
Top
Properties
  NameDescription
Public propertyFaces
Gets the faces.
Public propertyVertices
Gets the vertices.
Top
Methods
  NameDescription
Public methodAddFace
Adds a face.
Public methodAddVertex
Adds a vertex. Caution: Invalidates the Laplacian!.
Public methodBoundaryLoop
Return the boundary loop of the mesh rewrite this using https://en.wikipedia.org/wiki/Topological_sorting ! or this one https://stackoverflow.com/questions/12367801/finding-all-cycles-in-undirected-graphs.
Public methodBoundingBox
Compute the bounding box.
Public methodDuplicateMesh
Duplicates this mesh.
Public methodEdges
Set up the list of edges of the mesh.
Public methodEdges(ListEdge3, ListEdge3)
Return the list of interior and naked edges.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodfaceCOG
determine the center of gravity of a mesh face.
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 methodgenerate
Mesh a 2d boundary and promote to a 3d 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 methodInteriorVerticesIndices
Return the indices of interior vertices.
Public methodInteriorVerticesIndicesAlternativeImplementation
Return the indices of interior vertices, alternative trigonometric implementation.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPurelyInteriorPart
Get the interior vertices.
Public methodscaleto(AxisAlignedBoundingBox2)
Scales the mesh to a given bounding box.
Public methodscaleto(Double, Double, Double, Double)
Scales the mesh to a given bounding box.
Public methodSetVertex(Int32, Point2)
Set vertex at at index to a particular point.
Public methodSetVertex(Int32, Double, Double)
Sets a vertex at index to a particular point.
Public methodToMesh3AlongUVMap
Promotes a 2d mesh to a 3d mesh along a uv map.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVertexIndices
Return the indices of the vertices present in the given list of edges.
Public methodWriteOBJ
Saves the mesh to a 2d obj file.
Public methodWritePLY
save mesh to file via ply-format.
Top
See Also