16 #ifndef __IPSDKGEOMETRY_MESH3DVERTEXTRIANGLECONSTCIRCULATOR_H__ 17 #define __IPSDKGEOMETRY_MESH3DVERTEXTRIANGLECONSTCIRCULATOR_H__ 21 #include <IPSDKGeometry/Entity/3d/Triangle/Triangle3d.h> 31 template <
typename MeshType>
81 Mesh3dVertexTriangleConstCirculator(
const Iterator& iter) :
88 Mesh3dVertexTriangleConstCirculator& operator= (
const Iterator& iter)
95 ~Mesh3dVertexTriangleConstCirculator()
152 template <
typename MeshType>
156 return _startHalfEdgeIdx;
159 template <
typename MeshType>
163 return _curHalfEdgeIdx;
166 template <
typename MeshType>
170 const Mesh3dHalfEdge& startHalfEdge = _pMesh->getHalfEdgeColl()[_startHalfEdgeIdx];
176 template <
typename MeshType>
181 const Mesh3dHalfEdge& curHalfEdge = _pMesh->getHalfEdgeColl()[_curHalfEdgeIdx];
184 if (_curHalfEdgeIdx == _startHalfEdgeIdx)
191 template <
typename MeshType>
192 IPSDK_FORCEINLINE
bool 198 template <
typename MeshType>
199 IPSDK_FORCEINLINE
bool 205 template <
typename MeshType>
212 template <
typename MeshType>
219 template <
typename MeshType>
220 IPSDK_FORCEINLINE
void 223 const Mesh3dHalfEdge& curHalfEdge = _pMesh->getHalfEdgeColl()[_curHalfEdgeIdx];
230 _triangle.setCoords(v0, v1, v2);
233 template <
typename MeshType>
237 std::swap(_pMesh, iter.
_pMesh);
249 #endif // __IPSDKGEOMETRY_MESH3DVERTEXTRIANGLECONSTCIRCULATOR_H__ ipUInt32 _startHalfEdgeIdx
starting half edge index
Definition: Mesh3dVertexTriangleConstCirculator.h:139
const ipUInt32 getStartHalfEdgeIdx() const
retrieve starting half edge index associated to circulator
Definition: Mesh3dVertexTriangleConstCirculator.h:154
const ipUInt32 getCurHalfEdgeIdx() const
retrieve current half edge index associated to circulator
Definition: Mesh3dVertexTriangleConstCirculator.h:161
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
void updateData()
method allowing to update iterator internal data
Definition: Mesh3dVertexTriangleConstCirculator.h:221
const TriangleType * pointer
pointer type for iterator
Definition: Mesh3dVertexTriangleConstCirculator.h:58
TriangleType value_type
value type associated to iterator
Definition: Mesh3dVertexTriangleConstCirculator.h:52
Iterator & operator++()
increment of iterator
Definition: Mesh3dVertexTriangleConstCirculator.h:178
ipUInt32 _curHalfEdgeIdx
Definition: Mesh3dVertexTriangleConstCirculator.h:143
const VertexType & getStartVertex() const
retrieve starting vertex associated to circulator
Definition: Mesh3dVertexTriangleConstCirculator.h:168
Definition: Mesh3dTypes.h:52
Definition: NumericLimits.h:27
IPSDK_FORCEINLINE PackT max(const PackT &in1, const PackT &in2)
returns the maximum of 2 packs
Definition: max.h:40
Predefined types for mesh 3d management.
bool operator!=(const Iterator &iter) const
iterator comparison
Definition: Mesh3dVertexTriangleConstCirculator.h:200
Definition of import/export macro for library.
TriangleType _triangle
triangle data associated to current iterator position
Definition: Mesh3dVertexTriangleConstCirculator.h:146
3d triangle associated to cartesian 3d coordinates
Definition: Triangle3d.h:37
ipUInt64 _oppositeHalfEdgeIdx
Definition: Mesh3dTypes.h:62
MeshType::DataType T
underlying mesh 3d data type
Definition: Mesh3dVertexTriangleConstCirculator.h:37
const TriangleType * operator->() const
retrieve current triangle associated to iterator position
Definition: Mesh3dVertexTriangleConstCirculator.h:207
Triangle3d< T > TriangleType
underlying triangle 3d type
Definition: Mesh3dVertexTriangleConstCirculator.h:43
Vector DataType
data type used for estimation
Definition: EstimationTypes.h:58
Iterator class allowing to circulate over triangle with a top associated to a given vertex...
Definition: Mesh3dVertexTriangleConstCirculator.h:32
bool operator==(const Iterator &iter) const
iterator comparison
Definition: Mesh3dVertexTriangleConstCirculator.h:193
ipUInt64 _startVertexIdx
index of start vertex for half edge
Definition: Mesh3dTypes.h:55
void swap(Iterator &iter)
swap between iterators
Definition: Mesh3dVertexTriangleConstCirculator.h:235
ipUInt64 _nextHalfEdgeIdx
index of next half edge inside left triangle
Definition: Mesh3dTypes.h:65
MeshType::VertexType VertexType
underlying mesh 3d vertex type
Definition: Mesh3dVertexTriangleConstCirculator.h:40
const TriangleType & operator*() const
retrieve current triangle associated to iterator position
Definition: Mesh3dVertexTriangleConstCirculator.h:214
std::input_iterator_tag iterator_category
iterator category
Definition: Mesh3dVertexTriangleConstCirculator.h:49
const MeshType * _pMesh
reference to mesh 3d associated to iterator
Definition: Mesh3dVertexTriangleConstCirculator.h:136
Mesh3dVertexTriangleConstCirculator< MeshType > Iterator
iterator type
Definition: Mesh3dVertexTriangleConstCirculator.h:46
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53