Mesh2 Class

a sample implementation of a 2d mesh.

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public class Mesh2 : IMesh2
Inheritance
Object    Mesh2
Implements
IMesh2

Constructors

Mesh2(Mesh2) Initializes a new instance of the Mesh2 class. Create mesh based on another mesh.
Mesh2(Int32, Int32) Initializes a new instance of the Mesh2 class. Create mesh with an estimated number of vertices and faces.
Mesh2(IReadOnlyListPoint2, IReadOnlyListFace3) Initializes a new instance of the Mesh2 class. Create mesh based on faces and vertices.
Mesh2(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.

Properties

Faces Gets the faces.
Vertices Gets the vertices.

Methods

AddFace Adds a face.
AddVertex Adds a vertex. Caution: Invalidates the Laplacian!.
BoundaryLoop 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.
BoundingBox Compute the bounding box.
DuplicateMesh Duplicates this mesh.
Edges Set up the list of edges of the mesh.
Edges(ListEdge3, ListEdge3) Return the list of interior and naked edges.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
faceCOG determine the center of gravity of a mesh face.
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
generate Mesh a 2d boundary and promote to a 3d mesh.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
InteriorVerticesIndices Return the indices of interior vertices.
InteriorVerticesIndicesAlternativeImplementation Return the indices of interior vertices, alternative trigonometric implementation.
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
PurelyInteriorPart Get the interior vertices.
scaleto(AxisAlignedBoundingBox2) Scales the mesh to a given bounding box.
scaleto(Double, Double, Double, Double) Scales the mesh to a given bounding box.
SetVertex(Int32, Point2) Set vertex at at index to a particular point.
SetVertex(Int32, Double, Double) Sets a vertex at index to a particular point.
ToMesh3AlongUVMap Promotes a 2d mesh to a 3d mesh along a uv map.
ToString Returns a string that represents the current object.
(Inherited from Object)
VertexIndices Return the indices of the vertices present in the given list of edges.
WriteOBJ Saves the mesh to a 2d obj file.
WritePLY save mesh to file via ply-format.

Extension Methods

ContainerType test if object is (a container like) a list or an array.
(Defined by MiniUtil)

See Also