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

Writes a cube of voxels on disk.

#include <Voxel_Writer.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC 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.


Constructor & Destructor Documentation


Member Function Documentation


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