Go to the documentation of this file.
16 #ifndef SURGSIM_DATASTRUCTURES_OCTREENODEPLYREADERDELEGATE_INL_H
17 #define SURGSIM_DATASTRUCTURES_OCTREENODEPLYREADERDELEGATE_INL_H
21 namespace DataStructures
24 template <
typename Data>
28 static_assert(std::is_default_constructible<Data>::value,
"OctreeNode Data needs default constructor.");
31 template <
typename Data>
35 static_assert(std::is_default_constructible<Data>::value,
"OctreeNode Data needs default constructor");
39 template <
typename Data>
45 template <
typename Data>
51 template <
typename Data>
55 position[0] = m_voxel.x;
56 position[1] = m_voxel.y;
57 position[2] = m_voxel.z;
58 m_octree->addData(position, m_numLevels);
61 template <
typename Data>
64 m_octree->m_boundingBox = m_boundingBox;
#define SURGSIM_ASSERT(condition)
Assert that condition is true.
Definition: Assert.h:77
OctreeNodePlyReaderDelegate()
Constructor.
Definition: OctreeNodePlyReaderDelegate-inl.h:25
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:57
virtual ~OctreeNodePlyReaderDelegate()
Destructor.
Definition: OctreeNodePlyReaderDelegate-inl.h:40
Definition: CompoundShapeToGraphics.cpp:30
void initializeOctree() override
Definition: OctreeNodePlyReaderDelegate-inl.h:62
Octree data structure.
Definition: OctreeNode.h:133
std::shared_ptr< OctreeNode< Data > > m_octree
The octree that will be filled with the data from the file.
Definition: OctreeNodePlyReaderDelegate.h:158
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
std::shared_ptr< OctreeNode< Data > > getOctree()
Definition: OctreeNodePlyReaderDelegate-inl.h:46
void processVoxel(const std::string &elementName) override
Definition: OctreeNodePlyReaderDelegate-inl.h:52