Template Class ObjVisualization3D¶
Defined in File ObjVisualization3D.hpp
Inheritance Relationships¶
Base Type¶
public Acts::IVisualization3D
(Class IVisualization3D)
Class Documentation¶
-
template<typename
T
= double>
classActs
::
ObjVisualization3D
: public Acts::IVisualization3D¶ This helper produces output in the OBJ format.
Note that colors are not supported in this implementation.
Public Types
-
using
LineType
= std::pair<size_t, size_t>¶ Type of a line.
Public Functions
-
ObjVisualization3D
(unsigned int prec = 4, double scale = 1.)¶ Constructor that allows to set scalor and precision.
- Parameters
prec
: The output precission with std::setprecisionscale
: An (optional) scaling for the writing out
-
void
clear
() final¶ Remove all contents of this helper.
-
void
face
(const std::vector<Vector3> &vtxs, ColorRGB color = {0, 0, 0}) final¶ Draw a face that connects a list of vertices.
- Note
Depending on the helper implementation, out of plane vertices might be handled differently.
- Parameters
vtxs
: The vertices that make up the facecolor
: The color of the face
-
void
faces
(const std::vector<Vector3> &vtxs, const std::vector<FaceType> &faces, ColorRGB color = {0, 0, 0}) final¶ Draw a faces that connects a list of vertices - expert only.
- Note
Depending on the helper implementation, out of plane vertices might be handled differently.
- Parameters
vtxs
: The vertices that make up the faceSfaces
: The face presectiotions (i.e. connecting vertices)color
: The color of the face
-
void
line
(const Vector3 &a, const Vector3 &b, ColorRGB color = {0, 0, 0}) final¶ Draw a line from a vertex to another.
- Parameters
a
: The start vertexb
: The end vertexcolor
: The color of the line
-
void
vertex
(const Vector3 &vtx, ColorRGB color = {0, 0, 0}) final¶ Draw a vertex at a given location and a color.
- Parameters
vtx
: The vertex positioncolor
: The color
-
void
write
(const std::string &path) const final¶ Write the content of the helper to an outstream.
- Parameters
os
: The output stream for file
-
void
write
(std::ostream &os) const final¶ Write the content of the helper to an outstream.
- Parameters
os
: The output stream for file
-
void
write
(std::ostream &os, std::ostream &mos) const¶ Write the object and the material file.
- Parameters
os
: the output stream for the objectmos
: the output stream for the auxiliary material file
-
using