MsqVertex is the Mesquite object that stores information about the vertices in the mesh. More...
#include <MsqVertex.hpp>
Public Types | |
enum | FlagMaskID { MSQ_NO_VTX_FLAG = 0, MSQ_ALGO_FLAG0 = 1<<0, MSQ_SOFT_FIXED = 1<<1, MSQ_HARD_FIXED = 1<<2, MSQ_COORDS_CHANGED = 1<<3, MSQ_FLAG_3 = 1<<4, MSQ_FLAG_4 = 1<<5, MSQ_ALGO_FLAG1 = 1<<6, MSQ_ALGO_FLAG2 = 1<<7, MSQ_NO_VTX_FLAG = 0, MSQ_ALGO_FLAG0 = 1<<0, MSQ_SOFT_FIXED = 1<<1, MSQ_HARD_FIXED = 1<<2, MSQ_COORDS_CHANGED = 1<<3, MSQ_FLAG_3 = 1<<4, MSQ_FLAG_4 = 1<<5, MSQ_ALGO_FLAG1 = 1<<6, MSQ_ALGO_FLAG2 = 1<<7 } |
Those are the available flags... More... | |
enum | FlagMaskID { MSQ_NO_VTX_FLAG = 0, MSQ_ALGO_FLAG0 = 1<<0, MSQ_SOFT_FIXED = 1<<1, MSQ_HARD_FIXED = 1<<2, MSQ_COORDS_CHANGED = 1<<3, MSQ_FLAG_3 = 1<<4, MSQ_FLAG_4 = 1<<5, MSQ_ALGO_FLAG1 = 1<<6, MSQ_ALGO_FLAG2 = 1<<7, MSQ_NO_VTX_FLAG = 0, MSQ_ALGO_FLAG0 = 1<<0, MSQ_SOFT_FIXED = 1<<1, MSQ_HARD_FIXED = 1<<2, MSQ_COORDS_CHANGED = 1<<3, MSQ_FLAG_3 = 1<<4, MSQ_FLAG_4 = 1<<5, MSQ_ALGO_FLAG1 = 1<<6, MSQ_ALGO_FLAG2 = 1<<7 } |
typedef unsigned char | FlagMask |
typedef unsigned char | FlagMask |
Public Member Functions | |
MsqVertex (double x, double y, double z) | |
Construct vertex using three doubles. More... | |
MsqVertex (const Vector3D &vec) | |
Construct vertex using Vector3D. More... | |
MsqVertex () | |
Construct default vertex with coordinates (0.0,0.0,0.0) More... | |
MsqVertex (const MsqVertex &rhs) | |
Construct default vertex with coordinates (0.0,0.0,0.0) More... | |
MsqVertex & | operator= (const Vector3D &rhs) |
Initializes with coordinates. Sets tag data/pointer to 0. More... | |
bool | is_free_vertex () const |
Returns true if vertex is ``free''. More... | |
void | set_soft_fixed_flag () |
void | remove_soft_fixed_flag () |
void | set_hard_fixed_flag () |
void | set_vertex_flag (FlagMaskID flag) |
void | remove_vertex_flag (FlagMaskID flag) |
bool | is_flag_set (FlagMaskID flag) const |
MsqVertex (double x, double y, double z) | |
Construct vertex using three doubles. More... | |
MsqVertex (const Vector3D &vec) | |
Construct vertex using Vector3D. More... | |
MsqVertex () | |
Construct default vertex with coordinates (0.0,0.0,0.0) More... | |
MsqVertex (const MsqVertex &rhs) | |
Construct default vertex with coordinates (0.0,0.0,0.0) More... | |
MsqVertex & | operator= (const Vector3D &rhs) |
Initializes with coordinates. Sets tag data/pointer to 0. More... | |
bool | is_free_vertex () const |
Returns true if vertex is ``free''. More... | |
void | set_soft_fixed_flag () |
void | remove_soft_fixed_flag () |
void | set_hard_fixed_flag () |
void | set_vertex_flag (FlagMaskID flag) |
void | remove_vertex_flag (FlagMaskID flag) |
bool | is_flag_set (FlagMaskID flag) const |
Public Member Functions inherited from Vector3D | |
Vector3D () | |
Vector3D (const double &x, const double &y, const double &z) | |
Vector3D (const double xyz[3]) | |
Vector3D (const Vector3D &to_copy) | |
double | x () const |
double | y () const |
double | z () const |
void | get_coordinates (double &x, double &y, double &z) const |
void | get_coordinates (double xyz[3]) const |
const double & | operator[] (size_t index) const |
void | x (const double x) |
void | y (const double y) |
void | z (const double z) |
void | set (const double x, const double y, const double z) |
void | set (const double xyz[3]) |
void | set (const Vector3D &to_copy) |
double & | operator[] (size_t index) |
Vector3D & | operator= (const Vector3D &to_copy) |
Vector3D & | operator= (const double &to_copy) |
Vector3D | operator- () const |
Vector3D & | operator*= (const double scalar) |
Vector3D & | operator/= (const double scalar) |
divides each Vector3D entry by the given scalar. More... | |
Vector3D & | operator*= (const Vector3D &rhs) |
Vector3D & | operator+= (const Vector3D &rhs) |
Vector3D & | operator-= (const Vector3D &rhs) |
int | within_tolerance_box (const Vector3D &compare_to, double tolerance) const |
double | length_squared () const |
double | length () const |
void | set_length (const double new_length) |
void | normalize () |
const double * | to_array () const |
Vector3D () | |
Vector3D (const double &x, const double &y, const double &z) | |
Vector3D (const double xyz[3]) | |
Vector3D (const Vector3D &to_copy) | |
double | x () const |
double | y () const |
double | z () const |
void | get_coordinates (double &x, double &y, double &z) const |
void | get_coordinates (double xyz[3]) const |
const double & | operator[] (size_t index) const |
void | x (const double x) |
void | y (const double y) |
void | z (const double z) |
void | set (const double x, const double y, const double z) |
void | set (const double xyz[3]) |
void | set (const Vector3D &to_copy) |
double & | operator[] (size_t index) |
Vector3D & | operator= (const Vector3D &to_copy) |
Vector3D & | operator= (const double &to_copy) |
Vector3D | operator- () const |
Vector3D & | operator*= (const double scalar) |
Vector3D & | operator/= (const double scalar) |
Vector3D & | operator*= (const Vector3D &rhs) |
Vector3D & | operator+= (const Vector3D &rhs) |
Vector3D & | operator-= (const Vector3D &rhs) |
int | within_tolerance_box (const Vector3D &compare_to, double tolerance) const |
double | length_squared () const |
double | length () const |
void | set_length (const double new_length) |
void | normalize () |
const double * | to_array () const |
Private Attributes | |
FlagMask | vertexBitFlags |
Friends | |
class | Mesquite::MeshSet |
Additional Inherited Members | |
Static Public Member Functions inherited from Vector3D | |
static double | distance_between (const Vector3D &p1, const Vector3D &p2) |
static double | interior_angle (const Vector3D &a, const Vector3D &b, MsqError &err) |
static Vector3D | interpolate (const double param, const Vector3D &p1, const Vector3D &p2) |
static double | distance_between (const Vector3D &p1, const Vector3D &p2) |
static double | interior_angle (const Vector3D &a, const Vector3D &b, MsqError &err) |
static Vector3D | interpolate (const double param, const Vector3D &p1, const Vector3D &p2) |
Protected Attributes inherited from Vector3D | |
double | mCoords [3] |
MsqVertex is the Mesquite object that stores information about the vertices in the mesh.
This class has no virtual destructor for performance reasons. !!! Make sure NOT to delete a MsqVertex object from a pointer to Vector3D !!!
Definition at line 53 of file includeLinks/MsqVertex.hpp.
typedef unsigned char FlagMask |
Definition at line 84 of file includeLinks/MsqVertex.hpp.
typedef unsigned char FlagMask |
Definition at line 84 of file src/Mesh/MsqVertex.hpp.
enum FlagMaskID |
Those are the available flags...
currently only return is_free. Developers: The values used in that enum are used by a bitset, so they have to be 2-based (2,4,8,16,32, ...)
Definition at line 91 of file includeLinks/MsqVertex.hpp.
enum FlagMaskID |
Definition at line 91 of file src/Mesh/MsqVertex.hpp.
|
inline |
Construct vertex using three doubles.
Definition at line 57 of file includeLinks/MsqVertex.hpp.
Construct vertex using Vector3D.
Definition at line 62 of file includeLinks/MsqVertex.hpp.
|
inline |
Construct default vertex with coordinates (0.0,0.0,0.0)
Definition at line 67 of file includeLinks/MsqVertex.hpp.
Construct default vertex with coordinates (0.0,0.0,0.0)
Definition at line 72 of file includeLinks/MsqVertex.hpp.
|
inline |
Construct vertex using three doubles.
Definition at line 57 of file src/Mesh/MsqVertex.hpp.
Construct vertex using Vector3D.
Definition at line 62 of file src/Mesh/MsqVertex.hpp.
|
inline |
Construct default vertex with coordinates (0.0,0.0,0.0)
Definition at line 67 of file src/Mesh/MsqVertex.hpp.
Construct default vertex with coordinates (0.0,0.0,0.0)
Definition at line 72 of file src/Mesh/MsqVertex.hpp.
|
inline |
Definition at line 122 of file includeLinks/MsqVertex.hpp.
References MsqVertex::vertexBitFlags.
Referenced by MsqFreeVertexIndexIterator::next().
|
inline |
Definition at line 122 of file src/Mesh/MsqVertex.hpp.
References MsqVertex::vertexBitFlags.
|
inline |
Returns true if vertex is ``free''.
Definition at line 104 of file includeLinks/MsqVertex.hpp.
References MsqVertex::MSQ_HARD_FIXED, MsqVertex::MSQ_SOFT_FIXED, and MsqVertex::vertexBitFlags.
Referenced by LPtoPTemplate::compute_analytical_hessian().
|
inline |
Returns true if vertex is ``free''.
Definition at line 104 of file src/Mesh/MsqVertex.hpp.
References MsqVertex::MSQ_HARD_FIXED, MsqVertex::MSQ_SOFT_FIXED, and MsqVertex::vertexBitFlags.
Initializes with coordinates. Sets tag data/pointer to 0.
Definition at line 77 of file includeLinks/MsqVertex.hpp.
References Vector3D::operator=(), and MsqVertex::vertexBitFlags.
Initializes with coordinates. Sets tag data/pointer to 0.
Definition at line 77 of file src/Mesh/MsqVertex.hpp.
References Vector3D::operator=(), and MsqVertex::vertexBitFlags.
|
inline |
Definition at line 110 of file includeLinks/MsqVertex.hpp.
References MsqVertex::MSQ_SOFT_FIXED, and MsqVertex::vertexBitFlags.
|
inline |
Definition at line 110 of file src/Mesh/MsqVertex.hpp.
References MsqVertex::MSQ_SOFT_FIXED, and MsqVertex::vertexBitFlags.
|
inline |
Definition at line 119 of file includeLinks/MsqVertex.hpp.
References MsqVertex::vertexBitFlags.
|
inline |
Definition at line 119 of file src/Mesh/MsqVertex.hpp.
References MsqVertex::vertexBitFlags.
|
inline |
Definition at line 113 of file src/Mesh/MsqVertex.hpp.
References MsqVertex::MSQ_HARD_FIXED, and MsqVertex::vertexBitFlags.
|
inline |
Definition at line 113 of file includeLinks/MsqVertex.hpp.
References MsqVertex::MSQ_HARD_FIXED, and MsqVertex::vertexBitFlags.
|
inline |
Definition at line 107 of file src/Mesh/MsqVertex.hpp.
References MsqVertex::MSQ_SOFT_FIXED, and MsqVertex::vertexBitFlags.
|
inline |
Definition at line 107 of file includeLinks/MsqVertex.hpp.
References MsqVertex::MSQ_SOFT_FIXED, and MsqVertex::vertexBitFlags.
|
inline |
Definition at line 116 of file includeLinks/MsqVertex.hpp.
References MsqVertex::vertexBitFlags.
|
inline |
Definition at line 116 of file src/Mesh/MsqVertex.hpp.
References MsqVertex::vertexBitFlags.
|
friend |
Definition at line 128 of file includeLinks/MsqVertex.hpp.
|
private |
Definition at line 126 of file includeLinks/MsqVertex.hpp.
Referenced by MeshSet::get_next_elem_on_vert_patch(), MeshSet::get_next_global_patch(), MsqVertex::is_flag_set(), MsqVertex::is_free_vertex(), MsqVertex::operator=(), MsqVertex::remove_soft_fixed_flag(), MsqVertex::remove_vertex_flag(), MsqVertex::set_hard_fixed_flag(), MsqVertex::set_soft_fixed_flag(), and MsqVertex::set_vertex_flag().