Loading Volume Models
19 Nov 2015 23:52 #1
I am wondering what is the best way to load volume models in CHAI3D? Is the DICOM format supported?
Please Log in or Create an account to join the conversation.
19 Nov 2015 23:59 #2
The best way to load a volume model in CHAI3D is using a list of 2D images in *.png format.
Please see examples 29-voxel-isosurface and 30-voxel-colormap.
// create a volume object
volume = new cVoxelObject();
// add object to world
world->addChild(volume);
// create a multi image structure
cMultiImagePtr images = cMultiImage::create();
// load 320 image files
images->loadFromFiles("resources/ct-image", "png", 320);
// create texture
texture = cTexture3d::create();
// assign images to texture
texture->setImage(images);
// assign texture to volume object
volume->setTexture(texture);
Please Log in or Create an account to join the conversation.