Oolite 1.91.0.7645-241119-222d325
|
Go to the source code of this file.
Macros | |
#define | DECL_GEOMETRY(NAME, CAP) |
Typedefs | |
typedef struct OOMeshToOctreeConverterInternalData | GeometryData |
Functions | |
OOINLINE void | InitGeometryData (GeometryData *data, uint_fast32_t capacity) |
OOINLINE void | DestroyGeometryData (GeometryData *data) |
OOINLINE void | AddTriangle (GeometryData *data, Triangle tri) |
static NO_INLINE_FUNC void | AddTriangle_slow (GeometryData *data, Triangle tri) |
static OOScalar | MaxDimensionFromOrigin (GeometryData *data) |
void | BuildSubOctree (GeometryData *data, OOOctreeBuilder *builder, OOScalar halfWidth, NSUInteger depth) |
static void | SplitGeometryX (GeometryData *data, GeometryData *dPlus, GeometryData *dMinus, OOScalar x) |
static void | SplitGeometryY (GeometryData *data, GeometryData *dPlus, GeometryData *dMinus, OOScalar y) |
static void | SplitGeometryZ (GeometryData *data, GeometryData *dPlus, GeometryData *dMinus, OOScalar z) |
static void | TranslateGeometryX (GeometryData *data, OOScalar offset) |
static void | TranslateGeometryY (GeometryData *data, OOScalar offset) |
static void | TranslateGeometryZ (GeometryData *data, OOScalar offset) |
#define DECL_GEOMETRY | ( | NAME, | |
CAP ) |
Referenced by BuildSubOctree().
typedef struct OOMeshToOctreeConverterInternalData GeometryData |
Definition at line 111 of file OOMeshToOctreeConverter.m.
OOINLINE void AddTriangle | ( | GeometryData * | data, |
Triangle | tri ) |
Definition at line 217 of file OOMeshToOctreeConverter.m.
References AddTriangle_slow().
Referenced by SplitGeometryX(), SplitGeometryY(), and SplitGeometryZ().
|
static |
Definition at line 903 of file OOMeshToOctreeConverter.m.
Referenced by AddTriangle().
void BuildSubOctree | ( | GeometryData * | data, |
OOOctreeBuilder * | builder, | ||
OOScalar | halfWidth, | ||
NSUInteger | depth ) |
Definition at line 308 of file OOMeshToOctreeConverter.m.
References OOOctreeBuilder::beginInnerNode, BuildSubOctree(), DECL_GEOMETRY, DestroyGeometryData(), OOOctreeBuilder::endInnerNode, OCTREE_MIN_HALF_WIDTH, SplitGeometryX(), SplitGeometryY(), SplitGeometryZ(), OOOctreeBuilder::writeEmpty, and OOOctreeBuilder::writeSolid.
Referenced by BuildSubOctree().
OOINLINE void DestroyGeometryData | ( | GeometryData * | data | ) |
Definition at line 196 of file OOMeshToOctreeConverter.m.
References kOOMeshToOctreeConverterSmallDataCapacity.
Referenced by BuildSubOctree().
void InitGeometryData | ( | GeometryData * | data, |
uint_fast32_t | capacity ) |
Definition at line 185 of file OOMeshToOctreeConverter.m.
References kOOMeshToOctreeConverterSmallDataCapacity.
|
static |
Definition at line 290 of file OOMeshToOctreeConverter.m.
|
static |
Definition at line 489 of file OOMeshToOctreeConverter.m.
References AddTriangle(), count, TranslateGeometryX(), and x.
Referenced by BuildSubOctree().
|
static |
Definition at line 621 of file OOMeshToOctreeConverter.m.
References AddTriangle(), count, TranslateGeometryY(), and y.
Referenced by BuildSubOctree().
|
static |
Definition at line 754 of file OOMeshToOctreeConverter.m.
References AddTriangle(), count, and TranslateGeometryZ().
Referenced by BuildSubOctree().
|
static |
Definition at line 441 of file OOMeshToOctreeConverter.m.
References count.
Referenced by SplitGeometryX().
|
static |
Definition at line 457 of file OOMeshToOctreeConverter.m.
References count.
Referenced by SplitGeometryY().
|
static |
Definition at line 473 of file OOMeshToOctreeConverter.m.
References count.
Referenced by SplitGeometryZ().