Blender V4.5
Octree Class Reference

#include <octree.h>

Public Member Functions

 Octree (ModelReader *mr, DualConAllocOutput alloc_output_func, DualConAddVert add_vert_func, DualConAddQuad add_quad_func, DualConFlags flags, DualConMode dualcon_mode, int depth, float threshold, float sharpness)
 ~Octree ()
void scanConvert ()
void * getOutputMesh ()

Public Attributes

VirtualMemoryAllocatoralloc [9]
VirtualMemoryAllocatorleafalloc [4]
Noderoot
ModelReaderreader
Cubescubes
int dimen
int mindimen
int minshift
int maxDepth
float origin [3]
float range
int nodeCount
int nodeSpace
int nodeCounts [9]
int actualQuads
int actualVerts
PathListringList
int maxTrianglePerCell
int outType
int use_flood_fill
float thresh
int use_manifold
float hermite_num
DualConMode mode

Detailed Description

Class for building and processing an octree

Definition at line 206 of file octree.h.

Constructor & Destructor Documentation

◆ Octree()

Octree::Octree ( ModelReader * mr,
DualConAllocOutput alloc_output_func,
DualConAddVert add_vert_func,
DualConAddQuad add_quad_func,
DualConFlags flags,
DualConMode dualcon_mode,
int depth,
float threshold,
float sharpness )

◆ ~Octree()

Octree::~Octree ( )

Destructor

Definition at line 91 of file octree.cpp.

References cubes.

Member Function Documentation

◆ getOutputMesh()

void * Octree::getOutputMesh ( )
inline

Definition at line 279 of file octree.h.

Referenced by dualcon().

◆ scanConvert()

void Octree::scanConvert ( )

Scan convert

Definition at line 97 of file octree.cpp.

References dc_printf, root, and use_flood_fill.

Referenced by dualcon().

Member Data Documentation

◆ actualQuads

int Octree::actualQuads

Definition at line 239 of file octree.h.

◆ actualVerts

int Octree::actualVerts

Definition at line 239 of file octree.h.

◆ alloc

VirtualMemoryAllocator* Octree::alloc[9]

Memory allocators

Definition at line 211 of file octree.h.

◆ cubes

Cubes* Octree::cubes

Marching cubes table

Definition at line 221 of file octree.h.

Referenced by Octree(), and ~Octree().

◆ dimen

int Octree::dimen

Length of grid

Definition at line 224 of file octree.h.

Referenced by Octree().

◆ hermite_num

float Octree::hermite_num

Definition at line 252 of file octree.h.

Referenced by Octree().

◆ leafalloc

VirtualMemoryAllocator* Octree::leafalloc[4]

Definition at line 212 of file octree.h.

◆ maxDepth

int Octree::maxDepth

Maximum depth

Definition at line 228 of file octree.h.

Referenced by Octree().

◆ maxTrianglePerCell

int Octree::maxTrianglePerCell

Definition at line 243 of file octree.h.

Referenced by Octree().

◆ mindimen

int Octree::mindimen

Definition at line 225 of file octree.h.

Referenced by Octree().

◆ minshift

int Octree::minshift

Definition at line 225 of file octree.h.

Referenced by Octree().

◆ mode

DualConMode Octree::mode

Definition at line 254 of file octree.h.

Referenced by Octree().

◆ nodeCount

int Octree::nodeCount

Counting information

Definition at line 235 of file octree.h.

Referenced by Octree().

◆ nodeCounts

int Octree::nodeCounts[9]

Definition at line 237 of file octree.h.

◆ nodeSpace

int Octree::nodeSpace

Definition at line 236 of file octree.h.

Referenced by Octree().

◆ origin

float Octree::origin[3]

The lower corner of the bounding box and the size

Definition at line 231 of file octree.h.

Referenced by Octree().

◆ outType

int Octree::outType

Definition at line 244 of file octree.h.

◆ range

float Octree::range

Definition at line 232 of file octree.h.

Referenced by Octree().

◆ reader

ModelReader* Octree::reader

Model reader

Definition at line 218 of file octree.h.

Referenced by Octree().

◆ ringList

PathList* Octree::ringList

Definition at line 241 of file octree.h.

◆ root

Node* Octree::root

Root node

Definition at line 215 of file octree.h.

Referenced by Octree(), and scanConvert().

◆ thresh

float Octree::thresh

Definition at line 248 of file octree.h.

Referenced by Octree().

◆ use_flood_fill

int Octree::use_flood_fill

Definition at line 247 of file octree.h.

Referenced by Octree(), and scanConvert().

◆ use_manifold

int Octree::use_manifold

Definition at line 250 of file octree.h.

Referenced by Octree().


The documentation for this class was generated from the following files: