#include <Csc3dTypes.h>
|
| | CscPolygon (const CscPoint3d *p0, const CscPoint3d *p1, const CscPoint3d *p2, const CscPoint3d *normal0=nullptr, const CscPoint3d *normal1=nullptr, const CscPoint3d *normal2=nullptr, int ID=0) |
| |
| | CscPolygon (const CscPoint3d *positions[3], const CscPoint3d *normalVectors[3], int _ID) |
| |
| virtual | ~CscPolygon () |
| |
| const CscPoint3d * | getBarycentre () const |
| |
| const CscPoint3d * | getNormals () const |
| |
| CscPolygon * | clone () const |
| |
| bool | isPointInside (const CscPoint3d *pointToCheck) const |
| |
| CscPolygon * | rotate (const CscPoint3d *rotationEulerXYZ, const CscPoint3d *rotationCenter=nullptr) const |
| |
| CscPolygon * | translate (double x, double y, double z) const |
| |
| CscPolygon * | translate (const CscPoint3d &translation) const |
| |
| const CscPoint3d * | positionAt (int index) const |
| |
| const CscPoint3d * | normalAt (int index) const |
| |
| vector< const CscPoint3d * > | getPositions () const |
| |
◆ CscPolygon() [1/2]
- Note
- given points will be owned by this polygon, which means that they will be deleted when this polygon is released
◆ CscPolygon() [2/2]
| conscience_core::axiomes::CscPolygon::CscPolygon |
( |
const CscPoint3d * |
positions[3], |
|
|
const CscPoint3d * |
normalVectors[3], |
|
|
int |
_ID |
|
) |
| |
- Note
- given points will be owned by this polygon, which means that they will be deleted when this polygon is released
◆ ~CscPolygon()
| conscience_core::axiomes::CscPolygon::~CscPolygon |
( |
| ) |
|
|
virtual |
◆ clone()
| CscPolygon * conscience_core::axiomes::CscPolygon::clone |
( |
| ) |
const |
◆ getBarycentre()
| const CscPoint3d * conscience_core::axiomes::CscPolygon::getBarycentre |
( |
| ) |
const |
◆ getNormals()
| const CscPoint3d * conscience_core::axiomes::CscPolygon::getNormals |
( |
| ) |
const |
◆ getPositions()
| vector<const CscPoint3d *> conscience_core::axiomes::CscPolygon::getPositions |
( |
| ) |
const |
|
inline |
◆ isPointInside()
| bool conscience_core::axiomes::CscPolygon::isPointInside |
( |
const CscPoint3d * |
pointToCheck | ) |
const |
◆ normalAt()
| const CscPoint3d* conscience_core::axiomes::CscPolygon::normalAt |
( |
int |
index | ) |
const |
|
inline |
◆ positionAt()
| const CscPoint3d* conscience_core::axiomes::CscPolygon::positionAt |
( |
int |
index | ) |
const |
|
inline |
◆ rotate()
Rotate this polgon
- Parameters
-
| rotationEulerXYZ | rotation |
| rotationCenter | if null, will be origin |
- Returns
- a NEW polygon
◆ translate() [1/2]
| CscPolygon * conscience_core::axiomes::CscPolygon::translate |
( |
const CscPoint3d & |
translation | ) |
const |
◆ translate() [2/2]
| CscPolygon * conscience_core::axiomes::CscPolygon::translate |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| const |
◆ ID
| const int conscience_core::axiomes::CscPolygon::ID |
The documentation for this class was generated from the following files: