#include <mesh.h>
Public Member Functions | |
Point () | |
Point Class default constructor. Nothing to do. | |
Point (vec3 p, vec3 n, int index) | |
This constructor initializates the class variables. | |
~Point () | |
Point Class default destructor. Nothing to do. | |
float | operator[] (int i) |
Returns position coordinate. | |
vec3 | p () |
Returns position vector. | |
vec3 | n () |
Returns normal vector. | |
int | get_index () |
Returns label information. | |
void | add (vec3 v) |
Adds a vector to the position vector. | |
void | set_normal (float nx, float ny, float nz) |
Updates the normal vector. | |
Hedge * | lookup_hedge (Point *p) |
Looks for a hedge which connects a point. | |
bool | on_bdry () |
Returns true if the point belongs to mesh border, else return false. | |
void | add_vert (Vertex *v) |
Inserts a vertex pointer to the references list. | |
void | del_vert (Vertex *v) |
Removes a vertex pointer to the references list. | |
Private Attributes | |
vec3 | _p |
Position vector. | |
vec3 | _n |
Normal vector. | |
list< Vertex * > | _vl |
Set of vertices which reference Point. | |
int | _index |
Label information. |
Definition at line 520 of file mesh.h.
|
Point Class default constructor. Nothing to do.
Definition at line 530 of file mesh.h. References _index, _n, and _p.
|
|
This constructor initializates the class variables.
Definition at line 533 of file mesh.h. References _index, _n, and _p.
|
|
Point Class default destructor. Nothing to do.
|
|
Adds a vector to the position vector.
Definition at line 559 of file mesh.h. References _p.
|
|
Inserts a vertex pointer to the references list.
Definition at line 591 of file mesh.h. Referenced by Mesh::Surf::create(), Mesh::Surf::detach_handle_1(), and Mesh::Surf::detach_handle_2(). 00591 {_vl.push_back(v);};
|
|
Removes a vertex pointer to the references list.
Definition at line 596 of file mesh.h. Referenced by Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), and Mesh::Surf::destroy(). 00596 {_vl.remove(v);};
|
|
Returns label information.
Definition at line 554 of file mesh.h. References _index. 00554 {return _index;};
|
|
Looks for a hedge which connects a point.
Definition at line 573 of file mesh.h. 00573 { 00574 Hedge* he = NULL; 00575 for (list<Vertex*>::iterator viter = _vl.begin(); viter!=_vl.end();viter++) 00576 if ((*viter)->star_first()->org()->p()==p){ 00577 he = (*viter)->star_first(); 00578 break; 00579 } 00580 return he; 00581 };
|
|
Returns normal vector.
Definition at line 551 of file mesh.h. References _n. 00551 {return _n;};
|
|
Returns true if the point belongs to mesh border, else return false.
Definition at line 585 of file mesh.h. References Mesh::Hedge::edge(), and Mesh::Edge::is_bdry().
|
|
Returns position coordinate.
Definition at line 541 of file mesh.h. References _p. 00541 { 00542 if (i < 0 || i > 2) 00543 return 0.0; 00544 return _p[i]; 00545 };
|
|
Returns position vector.
Definition at line 548 of file mesh.h. References _p. Referenced by Mesh::Surf::lookup_hedge(), and lookup_hedge(). 00548 {return _p;};
|
|
Updates the normal vector.
Definition at line 566 of file mesh.h. References _n.
|
|
Label information.
Definition at line 525 of file mesh.h. Referenced by get_index(), and Point(). |
|
Normal vector.
Definition at line 523 of file mesh.h. Referenced by n(), Point(), and set_normal(). |
|
Position vector.
Definition at line 522 of file mesh.h. Referenced by add(), operator[](), p(), and Point(). |
|
Set of vertices which reference Point.
Definition at line 524 of file mesh.h. Referenced by lookup_hedge(). |