• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Paramdigma.Core
    • Convert
    • Intersect3D
    • Intersect3D.LineLineIntersectionResult
    • Intersect3D.LineLineIntersectionStatus
    • Intersect3D.LinePlaneIntersectionStatus
    • Intersect3D.RayFacePerimeterIntersectionStatus
    • Settings
  • Paramdigma.Core.Collections
    • Interval
    • Matrix<T>
  • Paramdigma.Core.Curves
    • Geodesics
    • LevelSets
  • Paramdigma.Core.Exceptions
    • UnsetGeometryException
  • Paramdigma.Core.Extensions
    • Lists
  • Paramdigma.Core.Geometry
    • BaseCurve
    • BasePoint
    • Box
    • Circle
    • Cylinder
    • Delaunay
    • InvalidCurveException
    • Line
    • Line2d
    • Mesh
    • MeshCorner
    • MeshEdge
    • MeshFace
    • MeshGeometry
    • MeshHalfEdge
    • MeshPoint
    • MeshTopology
    • MeshVertex
    • NurbsCurve
    • NurbsSurface
    • Plane
    • Point2d
    • Point3d
    • Point4d
    • Polyline
    • Polyline2d
    • Ray
    • Ray2d
    • Rectangle2d
    • Sphere
    • Torus
    • Vector2d
    • Vector3d
    • VectorNd
  • Paramdigma.Core.Geometry.Interfaces
    • ICurve
    • ISurface
    • IVector
  • Paramdigma.Core.IO
    • CsvReader
    • CsvWritter
    • OBJMeshData
    • ObjReader
    • ObjWritter
    • OffMeshData
    • OffReader
    • OffResult
    • OffWriter
  • Paramdigma.Core.LinearAlgebra
    • Complex
    • LeastSquaresLinearFit
    • Triplet
    • TripletData
  • Paramdigma.Core.Optimization
    • GradientDescent
    • GradientDescent.FitnessFunction
    • GradientDescentOptions
    • GradientDescentResult
    • KMeansCluster
    • KMeansClustering
    • KMeansClustering.IterationCompletedEventArgs
  • Paramdigma.Core.Spatial
    • DelaunayEdge
    • DelaunayPoint
    • DelaunayTriangle
    • Octree
    • PointCloud
    • PointCloudMember
    • QuadTree

Class MeshGeometry

Represents the geometry of a HE_Mesh such as positions at vertices.

Inheritance
System.Object
MeshGeometry
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public static class MeshGeometry : object

Methods

| Improve this Doc View Source

Angle(MeshCorner)

Compute the angle (in radians) at the specified corner.

Declaration
public static double Angle(MeshCorner corner)
Parameters
Type Name Description
MeshCorner corner

Corner.

Returns
Type Description
System.Double

The angle (in radians).

| Improve this Doc View Source

AngleDefect(MeshVertex)

Computes the angle defect at the given vertex.

Declaration
public static double AngleDefect(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex to compute angle defect.

Returns
Type Description
System.Double

Number representing the deviation of the current vertex from $2\PI$.

| Improve this Doc View Source

Area(MeshFace)

Computes the area of the specified face.

Declaration
public static double Area(MeshFace face)
Parameters
Type Name Description
MeshFace face

Face.

Returns
Type Description
System.Double

The face area.

| Improve this Doc View Source

BarycentricDualArea(MeshVertex)

Computes the barycentric dual area around a given mesh vertex.

Declaration
public static double BarycentricDualArea(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex.

Returns
Type Description
System.Double

The dual area.

| Improve this Doc View Source

Centroid(MeshFace)

Compute the centroid of the specified face.

Declaration
public static Point3d Centroid(MeshFace face)
Parameters
Type Name Description
MeshFace face

Face.

Returns
Type Description
Point3d

The centroid.

| Improve this Doc View Source

Circumcenter(MeshFace)

Compute the circumcenter the specified face.

Declaration
public static Point3d Circumcenter(MeshFace face)
Parameters
Type Name Description
MeshFace face

Face.

Returns
Type Description
Point3d

The circumcenter.

| Improve this Doc View Source

CircumcentricDualArea(MeshVertex)

Computes the circumcentric dual area around a given mesh vertex.

Declaration
public static double CircumcentricDualArea(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex.

Returns
Type Description
System.Double

The dual area.

| Improve this Doc View Source

Cotan(MeshHalfEdge)

Computes the cotangent of the angle opposite to a half-edge.

Declaration
public static double Cotan(MeshHalfEdge hE)
Parameters
Type Name Description
MeshHalfEdge hE

The half-edge

Returns
Type Description
System.Double

The cotangent value.

| Improve this Doc View Source

DihedralAngle(MeshHalfEdge)

Computes the signed angle (in radians) between the faces adjacent to the specified half-edge.

Declaration
public static double DihedralAngle(MeshHalfEdge hE)
Parameters
Type Name Description
MeshHalfEdge hE

H e.

Returns
Type Description
System.Double

The angle (in radians) between faces.

| Improve this Doc View Source

FaceNormal(MeshFace)

Compute the normal vector of the specified face.

Declaration
public static Vector3d FaceNormal(MeshFace face)
Parameters
Type Name Description
MeshFace face

Face.

Returns
Type Description
Vector3d

The normal.

| Improve this Doc View Source

Length(MeshEdge)

Calculates the length of the specified edge.

Declaration
public static double Length(MeshEdge edge)
Parameters
Type Name Description
MeshEdge edge

Edge.

Returns
Type Description
System.Double

The length.

| Improve this Doc View Source

MeanEdgeLength(Mesh)

Calculates the mean edge length of the mesh.

Declaration
public static double MeanEdgeLength(Mesh mesh)
Parameters
Type Name Description
Mesh mesh

Mesh.

Returns
Type Description
System.Double

The mean edge length of the mesh.

| Improve this Doc View Source

MidPoint(MeshEdge)

Calculates the midpoint of the specified edge.

Declaration
public static Point3d MidPoint(MeshEdge edge)
Parameters
Type Name Description
MeshEdge edge

Edge.

Returns
Type Description
Point3d

The point.

| Improve this Doc View Source

OrthonormalBases(MeshFace)

Compute the orthonormal bases of the specified face.

Declaration
public static Vector3d[] OrthonormalBases(MeshFace face)
Parameters
Type Name Description
MeshFace face

Face.

Returns
Type Description
Vector3d[]

Array containing the 2 Vector3d.

| Improve this Doc View Source

PrincipalCurvatures(MeshVertex)

Compute the principal curvature scalar values at a given vertex.

Declaration
public static double[] PrincipalCurvatures(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex to compute the curvature.

Returns
Type Description
System.Double[]

Returns an array of 2 values {k1, k2}.

| Improve this Doc View Source

ScalarGaussCurvature(MeshVertex)

Compute the Gaussian curvature at the given vertex.

Declaration
public static double ScalarGaussCurvature(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex to compute Gaussian curvature.

Returns
Type Description
System.Double

Number representing the gaussian curvature at that vertex.

| Improve this Doc View Source

ScalarMeanCurvature(MeshVertex)

Compute the Mean curvature at the given vertex.

Declaration
public static double ScalarMeanCurvature(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex to compute Mean curvature.

Returns
Type Description
System.Double

Number representing the Mean curvature at that vertex.

| Improve this Doc View Source

TotalAngleDefect(Mesh)

Compute the total angle defect of the mesh.

Declaration
public static double TotalAngleDefect(Mesh mesh)
Parameters
Type Name Description
Mesh mesh

Mesh to compute angle defect.

Returns
Type Description
System.Double

Returns the total angle defect as a scalar value.

| Improve this Doc View Source

TotalArea(Mesh)

Computes the total area of the mesh.

Declaration
public static double TotalArea(Mesh mesh)
Parameters
Type Name Description
Mesh mesh

Mesh.

Returns
Type Description
System.Double

The mesh area.

| Improve this Doc View Source

Vector(MeshHalfEdge)

Calculate the vector of a specified half-edge.

Declaration
public static Vector3d Vector(MeshHalfEdge halfEdge)
Parameters
Type Name Description
MeshHalfEdge halfEdge

Half edge.

Returns
Type Description
Vector3d

The half-edge vector.

| Improve this Doc View Source

VertexNormalAngleWeighted(MeshVertex)

Computes the angle weighted normal around the specified vertex.

Declaration
public static Vector3d VertexNormalAngleWeighted(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex.

Returns
Type Description
Vector3d

The normal vector at that vertex.

| Improve this Doc View Source

VertexNormalAreaWeighted(MeshVertex)

Computes the area weighted normal around the specified vertex.

Declaration
public static Vector3d VertexNormalAreaWeighted(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex.

Returns
Type Description
Vector3d

The normal vector at that vertex.

| Improve this Doc View Source

VertexNormalEquallyWeighted(MeshVertex)

Computes the equally weighted normal around the specified vertex.

Declaration
public static Vector3d VertexNormalEquallyWeighted(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex.

Returns
Type Description
Vector3d

The normal vector at that vertex.

| Improve this Doc View Source

VertexNormalGaussCurvature(MeshVertex)

Computes the gauss curvature weighted normal around the specified vertex.

Declaration
public static Vector3d VertexNormalGaussCurvature(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex.

Returns
Type Description
Vector3d

The normal vector at that vertex.

| Improve this Doc View Source

VertexNormalMeanCurvature(MeshVertex)

Computes the mean curvature weighted normal around the specified vertex.

Declaration
public static Vector3d VertexNormalMeanCurvature(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex.

Returns
Type Description
Vector3d

The normal vector at that vertex.

| Improve this Doc View Source

VertexNormalSphereInscribed(MeshVertex)

Computes the sphere inscribed normal around the specified vertex.

Declaration
public static Vector3d VertexNormalSphereInscribed(MeshVertex vertex)
Parameters
Type Name Description
MeshVertex vertex

Vertex.

Returns
Type Description
Vector3d

The normal vector at that vertex.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX