Open CASCADE Technology 6.6.0
Public Member Functions
Voxel_FastConverter Class Reference

Converts a shape to voxel representation.
It does it fast, but with less precision.
Also, it doesn't fill-in volumic part of the shape.

#include <Voxel_FastConverter.hxx>

Public Member Functions

 Voxel_FastConverter (const TopoDS_Shape &shape, Voxel_BoolDS &voxels, const Standard_Real delfection=0.1, const Standard_Integer nbx=10, const Standard_Integer nby=10, const Standard_Integer nbz=10, const Standard_Integer nbthreads=1)
 A constructor for conversion of a shape into a cube of boolean voxels.
It allocates the voxels in memory.
"nbthreads" defines the number of threads used to convert the shape.

 Voxel_FastConverter (const TopoDS_Shape &shape, Voxel_ColorDS &voxels, const Standard_Real delfection=0.1, const Standard_Integer nbx=10, const Standard_Integer nby=10, const Standard_Integer nbz=10, const Standard_Integer nbthreads=1)
 A constructor for conversion of a shape into a cube of colored voxels.
It allocates the voxels in memory.
"nbthreads" defines the number of threads used to convert the shape.

 Voxel_FastConverter (const TopoDS_Shape &shape, Voxel_ROctBoolDS &voxels, const Standard_Real delfection=0.1, const Standard_Integer nbx=10, const Standard_Integer nby=10, const Standard_Integer nbz=10, const Standard_Integer nbthreads=1)
 A constructor for conversion of a shape into a cube of boolean voxels
split into 8 sub-voxels recursively.
It allocates the voxels in memory.
"nbthreads" defines the number of threads used to convert the shape.

Standard_Boolean Convert (Standard_Integer &progress, const Standard_Integer ithread=1)
 Converts a shape into a voxel representation.
It sets to 0 the outside volume of the shape and
1 for surfacic part of the shape.
"ithread" is the index of the thread for current call of ::Convert().
Start numeration of "ithread" with 1, please.

Standard_Boolean FillInVolume (const Standard_Byte inner, const Standard_Integer ithread=1)
 Fills-in volume of the shape by a value.

void Destroy ()
 A destructor.

 ~Voxel_FastConverter ()

Constructor & Destructor Documentation

Voxel_FastConverter::Voxel_FastConverter ( const TopoDS_Shape shape,
Voxel_BoolDS voxels,
const Standard_Real  delfection = 0.1,
const Standard_Integer  nbx = 10,
const Standard_Integer  nby = 10,
const Standard_Integer  nbz = 10,
const Standard_Integer  nbthreads = 1 
)
Voxel_FastConverter::Voxel_FastConverter ( const TopoDS_Shape shape,
Voxel_ColorDS voxels,
const Standard_Real  delfection = 0.1,
const Standard_Integer  nbx = 10,
const Standard_Integer  nby = 10,
const Standard_Integer  nbz = 10,
const Standard_Integer  nbthreads = 1 
)
Voxel_FastConverter::Voxel_FastConverter ( const TopoDS_Shape shape,
Voxel_ROctBoolDS voxels,
const Standard_Real  delfection = 0.1,
const Standard_Integer  nbx = 10,
const Standard_Integer  nby = 10,
const Standard_Integer  nbz = 10,
const Standard_Integer  nbthreads = 1 
)
Voxel_FastConverter::~Voxel_FastConverter ( ) [inline]

Member Function Documentation

Standard_Boolean Voxel_FastConverter::Convert ( Standard_Integer progress,
const Standard_Integer  ithread = 1 
)
void Voxel_FastConverter::Destroy ( )
Standard_Boolean Voxel_FastConverter::FillInVolume ( const Standard_Byte  inner,
const Standard_Integer  ithread = 1 
)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines