AMCAX Kernel 1.0.0.0
|
Class of 3D polygon. More...
#include <math/Polygon3.hpp>
Public Member Functions | |
Polygon3 ()=default | |
Default constructor. | |
AMCAX_API | Polygon3 (int nv, bool hasParams) |
Construct with a specified number of vertices. More... | |
AMCAX_API | Polygon3 (const std::vector< Point3 > &verts) |
Construct from a vector of vertices. More... | |
AMCAX_API | Polygon3 (const std::vector< Point3 > &verts, const std::vector< double > ¶ms) |
Construct from a vector of vertices and a vector of parameters. More... | |
AMCAX_API std::shared_ptr< Polygon3 > | Copy () const |
Copy the polygon. More... | |
AMCAX_API double | Deflection () const |
Get the deflection. More... | |
AMCAX_API void | SetDeflection (double def) |
Set the deflection. More... | |
AMCAX_API int | NVertices () const |
Get the number of vertices. More... | |
AMCAX_API const std::vector< Point3 > & | Vertices () const |
Get the vertices. More... | |
AMCAX_API std::vector< Point3 > & | Vertices () |
Get the vertices. More... | |
AMCAX_API bool | HasParameters () const |
Do the vertices have parameters. More... | |
AMCAX_API const std::vector< double > & | Parameters () const |
Get the parameters. More... | |
AMCAX_API std::vector< double > & | Parameters () |
Get the parameters. More... | |
Friends | |
AMCAX_API friend std::ostream & | operator<< (std::ostream &os, const Polygon3 &poly) |
Write the polygon. More... | |
AMCAX_API friend std::istream & | operator>> (std::istream &is, Polygon3 &poly) |
Read the polygon. More... | |
Class of 3D polygon.
If the polygon is closed, the first point and the last point coincide.
AMCAX_API AMCAX::Polygon3::Polygon3 | ( | int | nv, |
bool | hasParams | ||
) |
Construct with a specified number of vertices.
nv | The number of vertices |
hasParams | Do the vertices have parameters |
Construct from a vector of vertices.
verts | The vertices |
AMCAX_API AMCAX::Polygon3::Polygon3 | ( | const std::vector< Point3 > & | verts, |
const std::vector< double > & | params | ||
) |
Construct from a vector of vertices and a vector of parameters.
verts | The vertices |
params | The parameters |
Copy the polygon.
AMCAX_API double AMCAX::Polygon3::Deflection | ( | ) | const |
Get the deflection.
AMCAX_API bool AMCAX::Polygon3::HasParameters | ( | ) | const |
Do the vertices have parameters.
AMCAX_API int AMCAX::Polygon3::NVertices | ( | ) | const |
Get the number of vertices.
AMCAX_API std::vector< double > & AMCAX::Polygon3::Parameters | ( | ) |
Get the parameters.
AMCAX_API const std::vector< double > & AMCAX::Polygon3::Parameters | ( | ) | const |
Get the parameters.
AMCAX_API void AMCAX::Polygon3::SetDeflection | ( | double | def | ) |
Set the deflection.
def | The deflection |
Get the vertices.
Get the vertices.
Write the polygon.
os | The output stream |
poly | The polygon |
Read the polygon.
is | The input stream |
poly | The polygon |