UNIVERS
15.3
UNIVERS base processing software API
|
#include <u3d_simple_triangled_surface.hpp>
Public Types | |
enum | Type { XYZ = 0, XYZp, XYZq, XYZpp, XYZqq, XYZpq, XYZ = 0, XYZp, XYZq, XYZpp, XYZqq, XYZpq } |
enum | Type { XYZ = 0, XYZp, XYZq, XYZpp, XYZqq, XYZpq, XYZ = 0, XYZp, XYZq, XYZpp, XYZqq, XYZpq } |
Public Member Functions | |
U3dSimpleTriangledSurface (U3dMathAbstractSurface *ms, U3dPoint zeroPoint, int m=10, int n=10, U3dSimpleTriangledSurface::Type type=XYZ) | |
U3dSimpleTriangledSurface (U3dSimpleTriangledSurface &ts) | |
virtual void | triangulate () |
virtual U3dBox | getBox () const |
virtual | ~U3dSimpleTriangledSurface () |
void | setGridSizes (int n, int m) |
virtual void | addPoint (U3dPoint *point) |
virtual bool | removePoint (int ind) |
virtual void | movePoint (int ind, double x, double y, double z) |
U3dSimpleTriangledSurface (U3dMathAbstractSurface *ms, U3dPoint zeroPoint, int m=10, int n=10, U3dSimpleTriangledSurface::Type type=XYZ) | |
U3dSimpleTriangledSurface (U3dSimpleTriangledSurface &ts) | |
virtual void | triangulate () |
virtual U3dBox | getBox () const |
virtual | ~U3dSimpleTriangledSurface () |
void | setGridSizes (int n, int m) |
virtual void | addPoint (U3dPoint *point) |
virtual bool | removePoint (int ind) |
virtual void | movePoint (int ind, double x, double y, double z) |
Public Member Functions inherited from U3dTriangledAbstractSurface | |
U3dTriangledAbstractSurface (U3dMathAbstractSurface *ms, U3dPoint zeroPoint) | |
U3dTriangledAbstractSurface (const U3dTriangledAbstractSurface &other) | |
const U3dTriangle * | getTriangle (int id) const throw (std::out_of_range) |
int | getTrianglesNum () const |
void | severance (U3dTriangledAbstractSurface *other, const U3D_COLOR &) |
void | severance_old (const U3dTriangledAbstractSurface *other, const U3D_COLOR &) |
void | setWhitePoint (const U3dPoint &p) |
U3dPoint | getWhitePoint () const |
const U3dPoint * | getPoint (int id) const throw (std::out_of_range) |
U3dPoint * | getPoint (int id) throw (std::out_of_range) |
bool | getPoint (int id, double &x, double &y, double &z) |
int | getPointsNum () |
void | getPoints (U3dPointsAr &ps) |
void | getInitialPoints (U3dPointsAr &ps) |
const U3dPointsAr & | getInitialPoints () const |
virtual bool | getSideColor (const U3dPoint &p, U3D_COLOR &u3dcolor) const |
virtual void | getIntersections (U3dPoint p0, U3dPoint p1, std::vector< int > &int_trIds, U3dPointsAr &int_points) |
bool | isTriangulated () |
const std::set< int > & | getActTrNums () |
U3dMathAbstractSurface * | getMathSurf () |
U3dTriangledAbstractSurface (U3dMathAbstractSurface *ms, U3dPoint zeroPoint) | |
U3dTriangledAbstractSurface (const U3dTriangledAbstractSurface &other) | |
const U3dTriangle * | getTriangle (int id) const throw (std::out_of_range) |
int | getTrianglesNum () const |
void | severance (U3dTriangledAbstractSurface *other, const U3D_COLOR &) |
void | severance_old (const U3dTriangledAbstractSurface *other, const U3D_COLOR &) |
void | setWhitePoint (const U3dPoint &p) |
U3dPoint | getWhitePoint () const |
const U3dPoint * | getPoint (int id) const throw (std::out_of_range) |
U3dPoint * | getPoint (int id) throw (std::out_of_range) |
bool | getPoint (int id, double &x, double &y, double &z) |
int | getPointsNum () |
void | getPoints (U3dPointsAr &ps) |
void | getInitialPoints (U3dPointsAr &ps) |
virtual bool | getSideColor (const U3dPoint &p, U3D_COLOR &u3dcolor) const |
virtual void | getIntersections (U3dPoint p0, U3dPoint p1, std::vector< int > &int_trIds, U3dPointsAr &int_points) |
bool | isTriangulated () |
const int_set & | getActTrNums () |
U3dMathAbstractSurface * | getMathSurf () |
Protected Attributes | |
U3dBox | m_box |
int | m_m |
int | m_n |
U3dSimpleTriangledSurface::Type | m_type |
Protected Attributes inherited from U3dTriangledAbstractSurface | |
U3dMathAbstractSurface * | m_math_surf |
U3dPointsAr | m_tps |
U3dTrianglesAr | m_triangles |
U3dPointsAr | m_initPoints |
std::set< int > | m_actTrNums |
bool | m_is_triangulated |
U3dPoint | m_white_point |
int_set | m_actTrNums |
Additional Inherited Members | |
Protected Member Functions inherited from U3dTriangledAbstractSurface | |
virtual void | calculateTrPlanes () |
virtual void | calculateTrPlanes () |
Simple triangled surface object just for tests Provides m x n grid triangulation
Type of resulting tringled surface
Type of resulting tringled surface
U3dSimpleTriangledSurface::U3dSimpleTriangledSurface | ( | U3dMathAbstractSurface * | ms, |
U3dPoint | zeroPoint, | ||
int | m = 10 , |
||
int | n = 10 , |
||
U3dSimpleTriangledSurface::Type | type = XYZ |
||
) |
Mathematically based triangled surface constructor
U3dSimpleTriangledSurface::U3dSimpleTriangledSurface | ( | U3dSimpleTriangledSurface & | ts | ) |
Copy constructor JUST DO IT !!!
|
virtual |
Destructor JUST DO IT !!!
U3dSimpleTriangledSurface::U3dSimpleTriangledSurface | ( | U3dMathAbstractSurface * | ms, |
U3dPoint | zeroPoint, | ||
int | m = 10 , |
||
int | n = 10 , |
||
U3dSimpleTriangledSurface::Type | type = XYZ |
||
) |
Mathematically based triangled surface constructor
U3dSimpleTriangledSurface::U3dSimpleTriangledSurface | ( | U3dSimpleTriangledSurface & | ts | ) |
Copy constructor JUST DO IT !!!
|
virtual |
Destructor JUST DO IT !!!
|
inlinevirtual |
Add one initial point JUST DO IT !!!
Implements U3dTriangledAbstractSurface.
|
inlinevirtual |
Add one initial point JUST DO IT !!!
Implements U3dTriangledAbstractSurface.
|
inlinevirtual |
Move initial point with index ind to provided coordinates place JUST DO IT !!!
Implements U3dTriangledAbstractSurface.
|
inlinevirtual |
Move initial point with index ind to provided coordinates place JUST DO IT !!!
Implements U3dTriangledAbstractSurface.
|
inlinevirtual |
Remove initial points with index ind. If no such point return false, otherwise return true JUST DO IT !!!
Implements U3dTriangledAbstractSurface.
|
inlinevirtual |
Remove initial points with index ind. If no such point return false, otherwise return true JUST DO IT !!!
Implements U3dTriangledAbstractSurface.
|
inline |
Set grid sizes
|
inline |
Set grid sizes
|
virtual |
Main triangulation method
|
virtual |
Main triangulation method
|
protected |
Grid sizes
|
protected |
Type of constructed surface