MEPP2 Project
Public Types | Static Public Member Functions | List of all members
FEVV::DataStructures::AIF::AIFPropertiesHelpers Class Reference

This class is an helper class associated to the AIFMesh structure. AIFPropertiesHelpers implements all the basic geometric function used to manipulate an AIFMesh point coordinates, and to compute normals or edge length. Any such geometric operation on the AIF structure need to be realized with this helper class. More...

#include <AIFPropertiesHelpers.h>

Collaboration diagram for FEVV::DataStructures::AIF::AIFPropertiesHelpers:
Collaboration graph

Public Types

typedef FEVV::DataStructures::AIF::AIFMesh AIFMesh
 
typedef AIFMesh::CoordinateType CoordinateType
 
typedef AIFMesh::NormalCoordinateType NormalCoordinateType
 
typedef AIFMesh::Point Point
 
typedef AIFMesh::Vector Vector
 
typedef AIFTopologyHelpers::smart_ptr_mesh smart_ptr_mesh
 
typedef AIFTopologyHelpers::ptr_mesh ptr_mesh
 
typedef AIFTopologyHelpers::ref_mesh ref_mesh
 
typedef AIFTopologyHelpers::vertex_descriptor vertex_descriptor
 
typedef AIFTopologyHelpers::edge_descriptor edge_descriptor
 

Static Public Member Functions

static void set_point (const ptr_mesh m, vertex_descriptor v, CoordinateType x, CoordinateType y, CoordinateType z)
 
static void set_point (const smart_ptr_mesh m, vertex_descriptor v, CoordinateType x, CoordinateType y, CoordinateType z)
 
static void set_point (ref_mesh m, vertex_descriptor v, CoordinateType x, CoordinateType y, CoordinateType z)
 
static Pointget_point (const ptr_mesh m, vertex_descriptor v)
 
static Pointget_point (const smart_ptr_mesh m, vertex_descriptor v)
 
static Pointget_point (ref_mesh m, vertex_descriptor v)
 
static Vector compute_normal (const Point &p1, const Point &p2, const Point &p3)
 
template<typename mesh >
static Vector compute_normal (const mesh m, const vertex_descriptor v1, const vertex_descriptor v2, const vertex_descriptor v3)
 
static Vector compute_unit_normal (const Point &p1, const Point &p2, const Point &p3)
 
template<typename mesh >
static Vector compute_unit_normal (const mesh m, const vertex_descriptor v1, const vertex_descriptor v2, const vertex_descriptor v3)
 
template<typename mesh >
static CoordinateType length (const mesh m, const edge_descriptor e)
 

Detailed Description

This class is an helper class associated to the AIFMesh structure. AIFPropertiesHelpers implements all the basic geometric function used to manipulate an AIFMesh point coordinates, and to compute normals or edge length. Any such geometric operation on the AIF structure need to be realized with this helper class.

See also
AIFMesh

Definition at line 27 of file AIFPropertiesHelpers.h.

Member Typedef Documentation

◆ AIFMesh

Definition at line 30 of file AIFPropertiesHelpers.h.

◆ CoordinateType

Definition at line 31 of file AIFPropertiesHelpers.h.

◆ edge_descriptor

Definition at line 39 of file AIFPropertiesHelpers.h.

◆ NormalCoordinateType

Definition at line 32 of file AIFPropertiesHelpers.h.

◆ Point

Definition at line 33 of file AIFPropertiesHelpers.h.

◆ ptr_mesh

Definition at line 36 of file AIFPropertiesHelpers.h.

◆ ref_mesh

Definition at line 37 of file AIFPropertiesHelpers.h.

◆ smart_ptr_mesh

Definition at line 35 of file AIFPropertiesHelpers.h.

◆ Vector

Definition at line 34 of file AIFPropertiesHelpers.h.

◆ vertex_descriptor

Definition at line 38 of file AIFPropertiesHelpers.h.

Member Function Documentation

◆ compute_normal() [1/2]

template<typename mesh >
static Vector FEVV::DataStructures::AIF::AIFPropertiesHelpers::compute_normal ( const mesh  m,
const vertex_descriptor  v1,
const vertex_descriptor  v2,
const vertex_descriptor  v3 
)
inlinestatic

Compute the normal (non unitary) of the plane defined by the three vertices.

Definition at line 154 of file AIFPropertiesHelpers.h.

Here is the call graph for this function:

◆ compute_normal() [2/2]

static Vector FEVV::DataStructures::AIF::AIFPropertiesHelpers::compute_normal ( const Point p1,
const Point p2,
const Point p3 
)
inlinestatic

Compute the normal (non unitary) of the plane defined by the three points.

Definition at line 130 of file AIFPropertiesHelpers.h.

Here is the caller graph for this function:

◆ compute_unit_normal() [1/2]

template<typename mesh >
static Vector FEVV::DataStructures::AIF::AIFPropertiesHelpers::compute_unit_normal ( const mesh  m,
const vertex_descriptor  v1,
const vertex_descriptor  v2,
const vertex_descriptor  v3 
)
inlinestatic

Compute the unit normal of the plane defined by the three vertices.

Definition at line 190 of file AIFPropertiesHelpers.h.

Here is the call graph for this function:

◆ compute_unit_normal() [2/2]

static Vector FEVV::DataStructures::AIF::AIFPropertiesHelpers::compute_unit_normal ( const Point p1,
const Point p2,
const Point p3 
)
inlinestatic

Compute the unit normal of the plane defined by the three points.

Definition at line 170 of file AIFPropertiesHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_point() [1/3]

static Point& FEVV::DataStructures::AIF::AIFPropertiesHelpers::get_point ( const ptr_mesh  m,
vertex_descriptor  v 
)
inlinestatic
Get the vertex coordinates.
Parameters
mmesh
vvertex descriptor
Returns
the point that contain the vertex coordinates

Definition at line 100 of file AIFPropertiesHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_point() [2/3]

static Point& FEVV::DataStructures::AIF::AIFPropertiesHelpers::get_point ( const smart_ptr_mesh  m,
vertex_descriptor  v 
)
inlinestatic
Get the vertex coordinates.
Parameters
mmesh
vvertex descriptor
Returns
the point that contain the vertex coordinates

Definition at line 110 of file AIFPropertiesHelpers.h.

Here is the call graph for this function:

◆ get_point() [3/3]

static Point& FEVV::DataStructures::AIF::AIFPropertiesHelpers::get_point ( ref_mesh  m,
vertex_descriptor  v 
)
inlinestatic
Get the vertex coordinates.
Parameters
mmesh
vvertex descriptor
Returns
the point that contain the vertex coordinates

Definition at line 120 of file AIFPropertiesHelpers.h.

Here is the call graph for this function:

◆ length()

template<typename mesh >
static CoordinateType FEVV::DataStructures::AIF::AIFPropertiesHelpers::length ( const mesh  m,
const edge_descriptor  e 
)
inlinestatic

Compute the length of an edge.

Definition at line 205 of file AIFPropertiesHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_point() [1/3]

static void FEVV::DataStructures::AIF::AIFPropertiesHelpers::set_point ( const ptr_mesh  m,
vertex_descriptor  v,
CoordinateType  x,
CoordinateType  y,
CoordinateType  z 
)
inlinestatic
Set the vertex coordinates.
Parameters
mmesh
vvertex descriptor
xx coordinate
yy coordinate
zz coordinate

Definition at line 49 of file AIFPropertiesHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_point() [2/3]

static void FEVV::DataStructures::AIF::AIFPropertiesHelpers::set_point ( const smart_ptr_mesh  m,
vertex_descriptor  v,
CoordinateType  x,
CoordinateType  y,
CoordinateType  z 
)
inlinestatic
Set the vertex coordinates.
Parameters
mmesh
vvertex descriptor
xx coordinate
yy coordinate
zz coordinate

Definition at line 67 of file AIFPropertiesHelpers.h.

Here is the call graph for this function:

◆ set_point() [3/3]

static void FEVV::DataStructures::AIF::AIFPropertiesHelpers::set_point ( ref_mesh  m,
vertex_descriptor  v,
CoordinateType  x,
CoordinateType  y,
CoordinateType  z 
)
inlinestatic
Set the vertex coordinates.
Parameters
mmesh
vvertex descriptor
xx coordinate
yy coordinate
zz coordinate

Definition at line 84 of file AIFPropertiesHelpers.h.

Here is the call graph for this function:

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