Topologic  0.8.9
Static Public Member Functions | List of all members
Topologic::Utilities::FaceUtility Class Reference

FaceUtility includes geometric methods relevant to a Face. More...

#include <FaceUtility.h>

Static Public Member Functions

static double Area (Face^ face)
 Returns the area of a Face. More...
 
static FaceByVertices (System::Collections::Generic::IEnumerable< System::Collections::Generic::IEnumerable< Vertex^>^>^ vertices)
 Creates a Face (of any type) by a set of Vertices. More...
 
static List< double > ^ ParametersAtVertex (Face^ face, Vertex^ vertex)
 Returns the UV parameters at a given Vertex on a Face. More...
 
static List< double > ^ NormalAtParameters (Face^ face, double u, double v)
 Returns the normal (vector) given the UV parameters of a Face. More...
 
static VertexVertexAtParameters (Face^ face, double u, double v)
 Returns the Vertex at a given parameter of the Face. More...
 
static FaceTrimByWire (Face^ face, Wire^ wire, bool reverseWire)
 Trims a Face with a Wire. The portion of the Face inside the Wire will be returned. More...
 
static List< Face^> ^ Triangulate (Face^ face, double deflection)
 Triangulates a Face given a deflection value. More...
 
static List< Shell^> ^ AdjacentShells (Face^ face, Topology^ parentTopology)
 Returns a list of Shells that are the adjacent to the input Face. More...
 
static List< Cell^> ^ AdjacentCells (Face^ face, Topology^ parentTopology)
 Returns a list of Cells that are the adjacent to the input Face. More...
 
static VertexInternalVertex (Face^ face, double tolerance)
 Returns a Vertex inside the Face. More...
 
static bool IsInside (Face^ face, Vertex^ vertex, double tolerance)
 Checks if a Vertex is located inside a Face within a tolerance value. More...
 

Detailed Description

FaceUtility includes geometric methods relevant to a Face.

Member Function Documentation

◆ AdjacentCells()

List< Cell^> Topologic::Utilities::FaceUtility::AdjacentCells ( Face face,
Topology parentTopology 
)
static

Returns a list of Cells that are the adjacent to the input Face.

Parameters
faceA Face
parentTopologyA parent Topology
Returns
A list of Cells adjacent to the input Face

◆ AdjacentShells()

List< Shell^> Topologic::Utilities::FaceUtility::AdjacentShells ( Face face,
Topology parentTopology 
)
static

Returns a list of Shells that are the adjacent to the input Face.

Parameters
faceA Face
parentTopologyA parent Topology
Returns
A list of Shells adjacent to the input Face

◆ Area()

double Topologic::Utilities::FaceUtility::Area ( Face face)
static

Returns the area of a Face.

Parameters
faceThe Face
Returns
The area of the Face

◆ ByVertices()

Face Topologic::Utilities::FaceUtility::ByVertices ( System::Collections::Generic::IEnumerable< System::Collections::Generic::IEnumerable< Vertex^>^>^  vertices)
static

Creates a Face (of any type) by a set of Vertices.

Parameters
verticesA Set of Vertices
Returns
The created Face

◆ InternalVertex()

Vertex Topologic::Utilities::FaceUtility::InternalVertex ( Face face,
double  tolerance 
)
static

Returns a Vertex inside the Face.

Parameters
faceA Face
toleranceA positive tolerance value
Returns
A Vertex inside the Face

◆ IsInside()

bool Topologic::Utilities::FaceUtility::IsInside ( Face face,
Vertex vertex,
double  tolerance 
)
static

Checks if a Vertex is located inside a Face within a tolerance value.

Parameters
faceA Face
vertexA Vertex
toleranceA positive tolerance value
Returns
True if the Vertex is inside the Face within at tolerance value, otherwise False

◆ NormalAtParameters()

List< double > Topologic::Utilities::FaceUtility::NormalAtParameters ( Face face,
double  u,
double  v 
)
static

Returns the normal (vector) given the UV parameters of a Face.

Parameters
faceA Face
uThe U parameter of the Face
vThe U parameter of the Face
Returns
The normal (vector) at a parameter of a Face

◆ ParametersAtVertex()

List< double > Topologic::Utilities::FaceUtility::ParametersAtVertex ( Face face,
Vertex vertex 
)
static

Returns the UV parameters at a given Vertex on a Face.

Parameters
faceA Face
vertexA Vertex on a Face
Returns
The UV parameters

◆ Triangulate()

List< Face^> Topologic::Utilities::FaceUtility::Triangulate ( Face face,
double  deflection 
)
static

Triangulates a Face given a deflection value.

Parameters
faceThe Face to be triangulated
deflectionThe deflection value to be applied for triangulation
Returns
The triangulated Face

◆ TrimByWire()

Face Topologic::Utilities::FaceUtility::TrimByWire ( Face face,
Wire wire,
bool  reverseWire 
)
static

Trims a Face with a Wire. The portion of the Face inside the Wire will be returned.

Parameters
faceThe Face to be trimmed
wireThe Wire with which the Face will be trimmed
reverseWireIf true, reverse the orientation of the wire
Returns
The trimmed Face

◆ VertexAtParameters()

Vertex Topologic::Utilities::FaceUtility::VertexAtParameters ( Face face,
double  u,
double  v 
)
static

Returns the Vertex at a given parameter of the Face.

Parameters
faceA Face
uThe U parameterof the Vertex on the Face
vThe V parameter of the Vertex on the Face
Returns
The Vertex at the given parameter of the Face

The documentation for this class was generated from the following files: