Volume Cartographer 2.27.0
|
Half-circle arch shape. More...
#include <vc/core/shapes/Arch.hpp>
Public Member Functions | |
Arch (int width=10, int height=10) | |
![]() | |
ITKMesh::Pointer | itkMesh () |
Return the shape as an ITKMesh. | |
vtkSmartPointer< vtkPolyData > | vtkMesh () |
Return the shape as a vtkPolyData. | |
PointSet< cv::Vec3d > | unorderedPoints () |
Return the vertices as a PointSet. More... | |
PointSet< cv::Vec6d > | unorderedPointNormal () |
Return the vertices and vertex normals as a PointSet. More... | |
std::vector< SimpleMesh::Vertex > | getPoints () const |
Return the vertices as a list of SimpleMesh::Vertex. More... | |
std::vector< SimpleMesh::Cell > | getCells () const |
Return the faces as a list of volcart::Cell. More... | |
OrderedPointSet< cv::Vec3d > | orderedPoints () |
Return the vertices as an OrderedPointSet. More... | |
OrderedPointSet< cv::Vec6d > | orderedPointNormal () |
Return the vertices and vertex normals as an OrderedPointSet. More... | |
bool | isOrdered () const |
Return if the shape generator created ordered vertices. More... | |
std::size_t | orderedWidth () const |
Return the width of the ordered vertex set. More... | |
std::size_t | orderedHeight () const |
Return the height of the ordered vertex set. More... | |
Additional Inherited Members | |
![]() | |
ShapePrimitive () | |
void | addVertex_ (double x, double y, double z) |
Add a new vertex to the shape. | |
void | addCell_ (int v1, int v2, int v3) |
Add a new triangular face to the mesh from vertex IDs. More... | |
void | updateNormal_ (int vertID, double nx, double ny, double nz) |
Update the normal of a vertex with a new normal component. More... | |
![]() | |
std::vector< SimpleMesh::Vertex > | points_ |
std::vector< SimpleMesh::Cell > | cells_ |
bool | ordered_ {false} |
std::size_t | orderedWidth_ {0} |
std::size_t | orderedHeight_ {0} |
Half-circle arch shape.
This class generates a half-circle arch shape, like a half-pipe. The width parameter determines the number of points on the circumference of one arch of the half-pipe. The height determines the number of arches, which can be thought of as the the length of the half-pipe. Each arch is separated by 1 unit.
The shape will have a number of points equal to width x height. The points generated by this class are ordered.
|
inline |