17 #ifndef AGXCOLLIDE_TRIMESH_H
18 #define AGXCOLLIDE_TRIMESH_H
54 CLOCKWISE_ORIENTATION = 0x1,
77 REMOVE_DUPLICATE_VERTICES = 0x40,
82 RECALCULATE_NORMALS_GIVEN_FIRST_TRIANGLE = 0x80
146 virtual void calculatePossibleTriangleOverlapsAlongLineSegment(
158 virtual void calculatePossibleTriangleOverlapsAlongLineSegment(
163 virtual Shape* clone()
const override;
192 void updateMeshGeometry(
bool showWarnings,
bool recalculateMassProperties =
true);
195 uint32_t getOptionsMask()
const;
210 bool isShallowCopy()
const;
215 const Trimesh* getShallowCopySource();
248 const char* sourceName,
249 uint32_t optionsMask);
255 void finalize(
const char* sourceName,
bool showWarnings, uint32_t optionsMask);
261 void flipNormal(
const size_t triangleIndex);
266 bool getTriangleHalfEdgePartnerTriangleIndexAndLocalEdgeIndex(
const size_t triangleIndex,
const size_t localEdgeIndex,
size_t& neighborIndex,
size_t& neighborLocalEdgeIndex);
274 void calculateMassProperties(
bool showWarnings);
283 void finalizeMeshTopology(
bool showWarnings, uint32_t optionsMask);
287 const char* sourceName, uint32_t optionsMask = 0);
293 void setValuesAsShallowCopy(
const Trimesh* other);
299 virtual void updateBvhTree()
override;
318 this->
getBvhTree()->findCollisionWithLineSegment(segmentStartLocal, segmentEndLocal, triangleIndices);
328 this->
getBvhTree()->findCollisionWithLineSegment(segmentStartLocal, segmentEndLocal, triangleIndices);