HD Mola
 
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
MeshAnalysis Class Reference

A collection of methods to analyze MolaMesh Face. More...

Static Public Member Functions

static List< floatFaceArea (MolaMesh molaMesh)
 Get the area value of each face of a MolaMesh.
 
static List< floatFaceCompactness (MolaMesh molaMesh)
 Get the compactness value of each face of a MolaMesh.
 
static List< intFaceIndex (MolaMesh molaMesh)
 Get the index of each face of a MolaMesh.
 
static List< Vec3FaceLocation (MolaMesh molaMesh)
 Get the center position of each face of a MolaMesh.
 
static List< boolFaceModulo (MolaMesh molaMesh, int modulo=5, int n=4)
 Get a boolean value for each face according to modulo.
 
static List< Vec3FaceNormal (MolaMesh molaMesh)
 Get the normal vector of each face of a MolaMesh.
 
static List< floatFacePerimeter (MolaMesh molaMesh)
 Get the perimeter value of each face of a MolaMesh.
 

Detailed Description

A collection of methods to analyze MolaMesh Face.

Member Function Documentation

◆ FaceArea()

static List< float > FaceArea ( MolaMesh molaMesh)
inlinestatic

Get the area value of each face of a MolaMesh.

Parameters
molaMeshA MolaMesh to be analyzed
Returns
A list of float values

◆ FaceCompactness()

static List< float > FaceCompactness ( MolaMesh molaMesh)
inlinestatic

Get the compactness value of each face of a MolaMesh.

Parameters
molaMeshA MolaMesh to be analyzed
Returns
A list of float values

◆ FaceIndex()

static List< int > FaceIndex ( MolaMesh molaMesh)
inlinestatic

Get the index of each face of a MolaMesh.

Parameters
molaMeshA MolaMesh to be analyzed
Returns
A list of int values

◆ FaceLocation()

static List< Vec3 > FaceLocation ( MolaMesh molaMesh)
inlinestatic

Get the center position of each face of a MolaMesh.

Parameters
molaMeshA MolaMesh to be analyzed
Returns
A list of Mola Vec3

◆ FaceModulo()

static List< bool > FaceModulo ( MolaMesh molaMesh,
int modulo = 5,
int n = 4 )
inlinestatic

Get a boolean value for each face according to modulo.

Parameters
molaMeshA MolaMesh to be analyzed
moduloThe modulo int number
nthe desired index number within the modulo
Returns
A list of boolean values

Example

A collection of methods to analyze MolaMesh Face.
Definition MeshAnalysis.cs:12
static List< bool > FaceModulo(MolaMesh molaMesh, int modulo=5, int n=4)
Get a boolean value for each face according to modulo.
Definition MeshAnalysis.cs:79
A collection of methods to create MolaMEsh Premitives.
Definition MeshFactory.cs:11
static MolaMesh CreateBox(float x1=0, float y1=0, float z1=0, float x2=1, float y2=1, float z2=1, Color? color=null)
Creates and returns a mesh box with six quad faces.
Definition MeshFactory.cs:509
A MolaGrid is taking care of getting and setting values and retrieving neighbors in an orthogonal gri...
Definition MolaGrid.cs:12
A mesh describes a 3D surface made of Vertices connected by Faces.
Definition MolaMesh.cs:12

◆ FaceNormal()

static List< Vec3 > FaceNormal ( MolaMesh molaMesh)
inlinestatic

Get the normal vector of each face of a MolaMesh.

Parameters
molaMeshA MolaMesh to be analyzed
Returns
A list of Mola Vec3

◆ FacePerimeter()

static List< float > FacePerimeter ( MolaMesh molaMesh)
inlinestatic

Get the perimeter value of each face of a MolaMesh.

Parameters
molaMeshA MolaMesh to be analyzed
Returns
A list of float values