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

CellUtility includes geometric methods relevant to a Cell. More...

#include <CellUtility.h>

Static Public Member Functions

static CellByLoft (System::Collections::Generic::IEnumerable< Wire^>^ wires)
 Creates a Cell by lofting through a set of Wires. More...
 
static CellByCuboid (double xCentroid, double yCentroid, double zCentroid, double xDimension, double yDimension, double zDimension, double xNormal, double yNormal, double zNormal, double xAxisX, double yAxisX, double ZAxisX, double xAxisY, double yAxisY, double ZAxisY)
 Creates a Cell by a Cuboid. More...
 
static CellBySphere (double xCentroid, double yCentroid, double zCentroid, double radius)
 Creates a Cell by a Sphere. More...
 
static CellByTwoCorners (Vertex ^ minVertex, Vertex ^ maxVertex)
 Creates an Axis-Aligned Bounding Box Cell by two Vertices at the minimum and maximum corners. More...
 
static double Volume (Cell^ cell)
 Returns the volume of a Cell. More...
 
static bool Contains (Cell^ cell, Vertex^ vertex, bool allowOnBoundary, double tolerance)
 Checks if a Vertex is contained in a Cell or not. More...
 
static List< double > ^ GetMinMax (Cell^ cell)
 Returns six values associated to the x, y, z coordinates of the bounding box of the Cell. More...
 
static VertexInternalVertex (Cell^ cell, double tolerance)
 Returns a Vertex inside the Cell. More...
 

Detailed Description

CellUtility includes geometric methods relevant to a Cell.

Member Function Documentation

◆ ByCuboid()

Cell Topologic::Utilities::CellUtility::ByCuboid ( double  xCentroid,
double  yCentroid,
double  zCentroid,
double  xDimension,
double  yDimension,
double  zDimension,
double  xNormal,
double  yNormal,
double  zNormal,
double  xAxisX,
double  yAxisX,
double  ZAxisX,
double  xAxisY,
double  yAxisY,
double  ZAxisY 
)
static

Creates a Cell by a Cuboid.

Parameters
xCentroidThe X coordinate of the centroid
yCentroidThe Y coordinate of the centroid
zCentroidThe Z coordinate of the centroid
xDimensionThe size along the X axis
yDimensionThe size along the Y axis
zDimensionThe size along the Z axis
xNormalThe X component of the normal
yNormalThe Y component of the normal
zNormalThe Z component of the normal
xAxisXThe X component of the X-axis
yAxisXThe X component of the Y-axis
ZAxisXThe X component of the Z-axis
Returns
The created Cell

◆ ByLoft()

Cell Topologic::Utilities::CellUtility::ByLoft ( System::Collections::Generic::IEnumerable< Wire^>^  wires)
static

Creates a Cell by lofting through a set of Wires.

Parameters
wiresA set of Wires
Returns
The created Cell

◆ BySphere()

Cell Topologic::Utilities::CellUtility::BySphere ( double  xCentroid,
double  yCentroid,
double  zCentroid,
double  radius 
)
static

Creates a Cell by a Sphere.

Parameters
xCentroidThe X coordinate of the centroid
yCentroidThe Y coordinate of the centroid
zCentroidThe Z coordinate of the centroid
radiusThe radius of the Sphere
Returns
The created Cell

◆ ByTwoCorners()

Cell Topologic::Utilities::CellUtility::ByTwoCorners ( Vertex minVertex,
Vertex maxVertex 
)
static

Creates an Axis-Aligned Bounding Box Cell by two Vertices at the minimum and maximum corners.

Parameters
minVertexThe minimum Vertex
maxVertexThe maximum Vertex
Returns
The created Cell

◆ Contains()

bool Topologic::Utilities::CellUtility::Contains ( Cell cell,
Vertex vertex,
bool  allowOnBoundary,
double  tolerance 
)
static

Checks if a Vertex is contained in a Cell or not.

Parameters
cellThe Cell
vertexThe Vertex
allowOnBoundaryIs the Vertex allowed on the Cell's boundary?
toleranceA positive tolerance value
Returns
True or false

◆ GetMinMax()

List< double > Topologic::Utilities::CellUtility::GetMinMax ( Cell cell)
static

Returns six values associated to the x, y, z coordinates of the bounding box of the Cell.

Parameters
cellThe Cell
Returns
Six values associated to the x, y, z coordinates of the bounding box of the topological entity

◆ InternalVertex()

Vertex Topologic::Utilities::CellUtility::InternalVertex ( Cell cell,
double  tolerance 
)
static

Returns a Vertex inside the Cell.

Parameters
cellA Cell
toleranceA positive tolerance value
Returns
A Vertex inside the Cell

◆ Volume()

double Topologic::Utilities::CellUtility::Volume ( Cell cell)
static

Returns the volume of a Cell.

Parameters
cellThe Cell
Returns
The volume of the Cell

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