Open CASCADE Technology 6.6.0
|
Writes a cube of voxels on disk.
#include <Voxel_Writer.hxx>
Public Member Functions | |
Voxel_Writer () | |
An empty constructor. | |
void | SetFormat (const Voxel_VoxelFileFormat format) |
Defines the file format for voxels. ASCII - slow and occupies more space on disk. BINARY - fast and occupies less space on disk. | |
void | SetVoxels (const Voxel_BoolDS &voxels) |
Defines the voxels (1bit). | |
void | SetVoxels (const Voxel_ColorDS &voxels) |
Defines the voxels (4bit). | |
void | SetVoxels (const Voxel_FloatDS &voxels) |
Defines the voxels (4bytes). | |
Standard_Boolean | Write (const TCollection_ExtendedString &file) const |
Writes the voxels on disk using the defined format and file name. |
Voxel_Writer::Voxel_Writer | ( | ) |
void Voxel_Writer::SetFormat | ( | const Voxel_VoxelFileFormat | format | ) |
void Voxel_Writer::SetVoxels | ( | const Voxel_BoolDS & | voxels | ) |
void Voxel_Writer::SetVoxels | ( | const Voxel_FloatDS & | voxels | ) |
void Voxel_Writer::SetVoxels | ( | const Voxel_ColorDS & | voxels | ) |
Standard_Boolean Voxel_Writer::Write | ( | const TCollection_ExtendedString & | file | ) | const |