 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
47 bool interpolateColorIfNoTexture)
override {
51 unsigned char vertIndex,
53 bool returnColorIfNoTexture)
override {
70 tx1 = tx2 = tx3 =
nullptr;
76 int& i3)
const override {
83 int& i3)
const override {
93 unsigned capacity()
const override {
return 0; }
98 double& nearestSquareDist,
100 CCVector3d* barycentricCoords =
nullptr)
const override {
106 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
111 LoadedIDMap& oldToNewIDMap)
override;
114 virtual unsigned size()
const override {
return 0; }
121 unsigned index)
override {
129 unsigned triangleIndex)
override {
139 double C[3])
const override {}
bool interpolateNormalsBC(unsigned triIndex, const CCVector3d &w, CCVector3 &N) override
Interpolates normal(s) inside a given triangle.
Definition: ecvMeshGroup.h:34
2D texture coordinates
Definition: ecvAdvancedTypes.h:138
bool getVertexColorFromMaterial(unsigned triIndex, unsigned char vertIndex, ecvColor::Rgb &rgb, bool returnColorIfNoTexture) override
Definition: ecvMeshGroup.h:50
virtual unsigned size() const override
Returns the number of triangles.
Definition: ecvMeshGroup.h:114
normal_z rgb
Definition: my_point_types.h:168
NormsIndexesTableType * getTriNormsTable() const override
Returns per-triangle normals shared array.
Definition: ecvMeshGroup.h:92
std::function< void(GenericTriangle &)> genericTriangleAction
Generic function to apply to a triangle (used by foreach)
Definition: GenericMesh.h:53
Triangle described by the indexes of its 3 vertices.
Definition: GenericIndexedMesh.h:16
bool hasPerTriangleTexCoordIndexes() const override
Returns whether this mesh as per-triangle triplets of tex coords indexes.
Definition: ecvMeshGroup.h:72
TextureCoordsContainer * getTexCoordinatesTable() const override
Returns per-triangle texture coordinates array.
Definition: ecvMeshGroup.h:62
bool hasTextures() const override
Returns whether textures are available for this mesh.
Definition: ecvMeshGroup.h:61
virtual void placeIteratorAtBeginning() override
Places the mesh iterator at the beginning.
Definition: ecvMeshGroup.h:116
virtual void getTriangleVertices(unsigned triangleIndex, CCVector3 &A, CCVector3 &B, CCVector3 &C) const override
Returns the vertices of a given triangle.
Definition: ecvMeshGroup.h:132
void getTriangleTexCoordinatesIndexes(unsigned triangleIndex, int &i1, int &i2, int &i3) const override
Returns the triplet of tex coords indexes for a given triangle.
Definition: ecvMeshGroup.h:73
virtual cloudViewer::GenericTriangle * _getTriangle(unsigned index) override
Returns the ith triangle.
Definition: ecvMeshGroup.h:120
virtual cloudViewer::VerticesIndexes * getNextTriangleVertIndexes() override
Definition: ecvMeshGroup.h:124
bool getColorFromMaterial(unsigned triIndex, const CCVector3 &P, ecvColor::Rgb &rgb, bool interpolateColorIfNoTexture) override
Definition: ecvMeshGroup.h:44
bool trianglePicking(const CCVector2d &clickPos, const ccGLCameraParameters &camera, int &nearestTriIndex, double &nearestSquareDist, CCVector3d &nearestPoint, CCVector3d *barycentricCoords=nullptr) const override
Brute force triangle picking.
Definition: ecvMeshGroup.h:94
bool toFile_MeOnly(QFile &out, short dataVersion) const override
Save own object data.
Definition: ecvGenericMesh.cpp:253
virtual void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax) override
Returns the mesh bounding-box.
Definition: ecvMeshGroup.h:140
OpenGL camera parameters.
Definition: ecvGenericDisplayTools.h:554
bool getTriangleNormals(unsigned triangleIndex, CCVector3 &Na, CCVector3 &Nb, CCVector3 &Nc) const override
Returns a given triangle normal.
Definition: ecvMeshGroup.h:86
Array of compressed 3D normals (single index)
Definition: ecvAdvancedTypes.h:21
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
ImGuiContext * context
Definition: Window.cpp:76
@ MESH_GROUP
Definition: CVTypes.h:107
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
short minimumFileVersion_MeOnly() const override
Definition: ecvGenericMesh.cpp:289
int getTriangleMtlIndex(unsigned triangleIndex) const override
Returns a given triangle material indexes.
Definition: ecvMeshGroup.h:58
virtual cloudViewer::GenericTriangle * _getNextTriangle() override
Returns the next triangle (relatively to the global iterator position)
Definition: ecvMeshGroup.h:117
Generic mesh interface.
Definition: ecvGenericMesh.h:28
Array of 2D texture coordinates.
Definition: ecvAdvancedTypes.h:151
bool hasMaterials() const override
Definition: ecvMeshGroup.h:56
bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
Loads own object data.
Definition: ecvGenericMesh.cpp:294
virtual bool isSerializable() const override
Returns whether object is serializable of not.
Definition: ecvMeshGroup.h:105
void getTriangleNormalIndexes(unsigned triangleIndex, int &i1, int &i2, int &i3) const override
Returns a triplet of normal indexes for a given triangle (if any)
Definition: ecvMeshGroup.h:80
Definition: ecvMeshGroup.h:18
bool interpolateNormals(unsigned triIndex, const CCVector3 &P, CCVector3 &N) override
Interpolates normal(s) inside a given triangle.
Definition: ecvMeshGroup.h:29
virtual void getTriangleVertices(unsigned triangleIndex, double A[3], double B[3], double C[3]) const override
Definition: ecvMeshGroup.h:136
void getTriangleTexCoordinates(unsigned triIndex, TexCoords2D *&tx1, TexCoords2D *&tx2, TexCoords2D *&tx3) const override
Returns per-triangle texture coordinates (pointer to)
Definition: ecvMeshGroup.h:66
RGB color structure.
Definition: ecvColorTypes.h:49
virtual void forEach(genericTriangleAction action) override
Fast iteration mechanism.
Definition: ecvMeshGroup.h:115
ccGenericPointCloud * getAssociatedCloud() const override
Returns the vertices cloud.
Definition: ecvMeshGroup.h:27
Mesh (triangle) material.
Definition: ecvMaterialSet.h:16
unsigned capacity() const override
Returns max capacity.
Definition: ecvMeshGroup.h:93
const ccMaterialSet * getMaterialSet() const override
Definition: ecvMeshGroup.h:57
void refreshBB() override
Forces bounding-box update.
Definition: ecvMeshGroup.h:28
#define CV_DB_LIB_API
Definition: CV_db.h:15
Display context.
Definition: ecvDrawContext.h:365
CV_CLASS_ENUM getClassID() const override
Returns class ID.
Definition: ecvMeshGroup.h:24
bool interpolateColors(unsigned triIndex, const CCVector3 &P, ecvColor::Rgb &rgb) override
Interpolates RGB colors inside a given triangle.
Definition: ecvMeshGroup.h:39
void drawMeOnly(CC_DRAW_CONTEXT &context) override
Enables (OpenGL) stipple mask.
Definition: ecvGenericMesh.cpp:138
ccMeshGroup()
Default constructor.
Definition: ecvMeshGroup.h:21
bool hasTriNormals() const override
Returns whether the mesh has per-triangle normals.
Definition: ecvMeshGroup.h:79
A generic triangle interface.
Definition: GenericTriangle.h:18
void getTexCoordinates(unsigned index, TexCoords2D *&tx) const
Definition: ecvMeshGroup.h:65
virtual cloudViewer::VerticesIndexes * getTriangleVertIndexes(unsigned triangleIndex) override
Returns the indexes of the vertices of a given triangle.
Definition: ecvMeshGroup.h:128