QUAOAR STUDIO // Mobius API
mobius::poly_MeshUtils Class Reference

#include <poly_Mesh.h>

Static Public Member Functions

static mobiusPoly_EXPORT void ComputeCenter (const t_xyz &v0, const t_xyz &v1, const t_xyz &v2, t_xyz &center)
 
static mobiusPoly_EXPORT bool ComputeNormal (const t_xyz &v0, const t_xyz &v1, const t_xyz &v2, t_xyz &norm)
 
static mobiusPoly_EXPORT double ComputeArea (const t_xyz &v0, const t_xyz &v1, const t_xyz &v2)
 
static mobiusPoly_EXPORT bool ComputePyramidProps (const t_xyz &v0, const t_xyz &v1, const t_xyz &v2, const core_XYZ &apex, double gProps[10], const int nbPnts, const double *pnts)
 

Detailed Description

Utilities.

Member Function Documentation

◆ ComputeArea()

static mobiusPoly_EXPORT double mobius::poly_MeshUtils::ComputeArea ( const t_xyz v0,
const t_xyz v1,
const t_xyz v2 
)
static

Computes area for the passed triangle nodes.

Parameters
[in]hv0the first vertex.
[in]hv1the second vertex.
[in]hv2the third vertex.
Returns
the computed area.

◆ ComputeCenter()

static mobiusPoly_EXPORT void mobius::poly_MeshUtils::ComputeCenter ( const t_xyz v0,
const t_xyz v1,
const t_xyz v2,
t_xyz center 
)
static

Computes center for the passed triple of vertices.

Parameters
[in]v0the first vertex.
[in]v1the second vertex.
[in]v2the third vertex.
[out]centerthe computed center point.

◆ ComputeNormal()

static mobiusPoly_EXPORT bool mobius::poly_MeshUtils::ComputeNormal ( const t_xyz v0,
const t_xyz v1,
const t_xyz v2,
t_xyz norm 
)
static

Computes normal vector for the passed triple of vertices.

Parameters
[in]v0the first vertex.
[in]v1the second vertex.
[in]v2the third vertex.
[out]normthe computed normal vector.
Returns
true if the normal vector was computed successfully, false – otherwise.

◆ ComputePyramidProps()

static mobiusPoly_EXPORT bool mobius::poly_MeshUtils::ComputePyramidProps ( const t_xyz v0,
const t_xyz v1,
const t_xyz v2,
const core_XYZ apex,
double  gProps[10],
const int  nbPnts,
const double *  pnts 
)
static

Auxiliary method to compute intertia props from a volumetric element enclosed by a surface mesh.


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