Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Voxel_BooleanOperation Class Reference

Boolean operations (fuse, cut)
for voxels of the same dimension.

#include <Voxel_BooleanOperation.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC Voxel_BooleanOperation ()
 An empty constructor.

Standard_Boolean Fuse (Voxel_BoolDS &theVoxels1, const Voxel_BoolDS &theVoxels2) const
 Fuses two cubes of voxels.
It modifies the first cube of voxels.
It returns false in case of different dimension of the cube,
different number of voxels.

Standard_Boolean Fuse (Voxel_ColorDS &theVoxels1, const Voxel_ColorDS &theVoxels2) const
 Fuses two cubes of voxels.
It modifies the first cube of voxels.
It returns false in case of different dimension of the cube,
different number of voxels.
It summerizes the value of corresponding voxels and puts the result to theVoxels1.
If the result exceeds 15 or becomes greater, it keeps 15.

Standard_Boolean Fuse (Voxel_FloatDS &theVoxels1, const Voxel_FloatDS &theVoxels2) const
 Fuses two cubes of voxels.
It modifies the first cube of voxels.
It returns false in case of different dimension of the cube,
different number of voxels.
It summerizes the value of corresponding voxels and puts the result to theVoxels1.

Standard_Boolean Cut (Voxel_BoolDS &theVoxels1, const Voxel_BoolDS &theVoxels2) const
 Cuts two cubes of voxels.
It modifies the first cube of voxels.
It returns false in case of different dimension of the cube,
different number of voxels.

Standard_Boolean Cut (Voxel_ColorDS &theVoxels1, const Voxel_ColorDS &theVoxels2) const
 Cuts two cubes of voxels.
It modifies the first cube of voxels.
It returns false in case of different dimension of the cube,
different number of voxels.
It subtracts the value of corresponding voxels and puts the result to theVoxels1.

Standard_Boolean Cut (Voxel_FloatDS &theVoxels1, const Voxel_FloatDS &theVoxels2) const
 Cuts two cubes of voxels.
It modifies the first cube of voxels.
It returns false in case of different dimension of the cube,
different number of voxels.
It subtracts the value of corresponding voxels and puts the result to theVoxels1.


Constructor & Destructor Documentation


Member Function Documentation

Standard_Boolean Voxel_BooleanOperation::Cut ( Voxel_BoolDS theVoxels1,
const Voxel_BoolDS theVoxels2 
) const
Standard_Boolean Voxel_BooleanOperation::Fuse ( Voxel_BoolDS theVoxels1,
const Voxel_BoolDS theVoxels2 
) const

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