15 class GenericIndexedCloudPersist;
32 QString
name = QString(
"Facet"));
48 bool transferOwnership =
false,
68 inline double getRMS()
const {
return m_rms; }
73 return m_planeEquation;
94 return m_contourVertices;
101 return m_originPoints;
110 m_contourVertices = cloud;
116 std::shared_ptr<ccMesh> getNormalVectorMesh(
bool update =
false);
120 bool clone(
ccFacet* facet)
const;
122 virtual bool IsEmpty()
const override;
123 virtual Eigen::Vector3d
GetMinBound()
const override;
124 virtual Eigen::Vector3d
GetMaxBound()
const override;
125 virtual Eigen::Vector3d
GetCenter()
const override;
130 bool relative =
true)
override;
132 const Eigen::Vector3d& center)
override;
134 const Eigen::Vector3d& center)
override;
158 bool createInternalRepresentation(
190 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
float PointCoordinateType
Type of the coordinates of a (N-D) point.
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
const QCPVector2D operator+(const QCPVector2D &vec1, const QCPVector2D &vec2)
ccMesh * getPolygon()
Returns polygon mesh (if any)
double getSurface() const
Returns associated surface area.
const ccPointCloud * getContourVertices() const
Returns contour vertices (if any)
const PointCoordinateType * getPlaneEquation() const
Returns plane equation.
ccPolyline * getContour()
Returns contour polyline (if any)
double m_rms
RMS (relatively to m_associatedPoints)
const ccMesh * getPolygon() const
Returns polygon mesh (if any)
ccMesh * m_polygonMesh
Facet.
virtual bool isSerializable() const override
Returns whether object is serializable of not.
double m_surface
Surface (m_polygon)
ccPointCloud * m_originPoints
Origin points.
CCVector3 getNormal() const override
Returns the entity normal.
PointCoordinateType m_maxEdgeLength
Max length.
void setContour(ccPolyline *poly)
Sets contour polyline.
ccPolyline * m_contourPolyline
Facet contour.
double getRMS() const
Returns associated RMS.
const ccPolyline * getContour() const
Returns contour polyline (if any)
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
std::shared_ptr< ccMesh > m_arrow
for python interface use
void setContourVertices(ccPointCloud *cloud)
Sets contour vertices.
ccFacet & PaintUniformColor(const Eigen::Vector3d &color)
Assigns each line in the LineSet the same color.
CCVector3 m_center
Facet centroid.
const CCVector3 & getCenter() const
Returns the facet center.
ccPointCloud * getContourVertices()
Returns contour vertices (if any)
const ccPointCloud * getOriginPoints() const
Returns origin points (if any)
void setPolygon(ccMesh *mesh)
Sets polygon mesh.
ccPointCloud * m_contourVertices
Shared vertices (between polygon and contour)
void setOriginPoints(ccPointCloud *cloud)
Sets origin points.
ccPointCloud * getOriginPoints()
Returns origin points (if any)
Float version of ccGLMatrixTpl.
Hierarchical CLOUDVIEWER Object.
virtual ecvOrientedBBox GetOrientedBoundingBox() const
virtual ccHObject & Scale(const double s, const Eigen::Vector3d ¢er)
Apply scaling to the geometry coordinates. Given a scaling factor , and center , a given point is tr...
virtual void drawMeOnly(CC_DRAW_CONTEXT &context)
Draws the entity only (not its children)
virtual short minimumFileVersion_MeOnly() const
virtual bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap)
Loads own object data.
virtual Eigen::Vector3d GetCenter() const
Returns the center of the geometry coordinates.
virtual ccHObject & Translate(const Eigen::Vector3d &translation, bool relative=true)
Apply translation to the geometry coordinates.
virtual ccHObject & Rotate(const Eigen::Matrix3d &R, const Eigen::Vector3d ¢er)
Apply rotation to the geometry coordinates and normals. Given a rotation matrix , and center ,...
virtual bool toFile_MeOnly(QFile &out, short dataVersion) const
Save own object data.
virtual void applyGLTransformation(const ccGLMatrix &trans)
Applies a GL transformation to the entity.
virtual bool IsEmpty() const
virtual Eigen::Vector3d GetMaxBound() const
Returns max bounds for geometry coordinates.
virtual Eigen::Vector3d GetMinBound() const
Returns min bounds for geometry coordinates.
virtual ccHObject & Transform(const Eigen::Matrix4d &transformation)
Apply transformation (4x4 matrix) to the geometry coordinates.
virtual ccBBox GetAxisAlignedBoundingBox() const
Returns an axis-aligned bounding box of the geometry.
Interface for a planar entity.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
QMultiMap< unsigned, unsigned > LoadedIDMap
Map of loaded unique IDs (old ID --> new ID)
A generic 3D point cloud with index-based and presistent access to points.
constexpr static RgbTpl FromEigen(const Eigen::Vector3d &t)
bool setColor(ccHObject::Container selectedEntities, bool colorize, QWidget *parent)
void operator+=(MiniVec< T, N > &a, const MiniVec< T, N > &b)
Generic file read and write utility for python interface.