ImageGear Professional for Windows ActiveX
3D Visualization API

The objects IGVector3DIVObject Object and IGVector3DIVOptions Object present a set of properties and methods for generating isosurface for 3D objects.

The 3D algorithm works on the set of images that should comprise a 3D object, and generates an isosurface for 3D visualization. It allows the options of adding "cover-up" slices at both ends, and also limiting the surface depth to reduce the number of triangles in the isosurface. Both of these two options, along with a few others, can be passed to the algorithm through an object of type IGVector3DIVOptions Object.

Usually, you need to create an object IGVector3DIVOptions Object to store the values of options to be passed to the isosurface algorithm. The objects IGVector3DIVObject Object and IGVector3DIVOptions Object can be created by calling function CreateObject Method of IGVectorCtl Control object, with parameter VECTOR_OBJ_3DIV_OBJECT or VECTOR_OBJ_3DIV_OPTIONS for the object type.

IGVector3DIVObject Object has a method CanApplyGenerateIsosurface Method, that can be used to check whether an IGDocument Object can be used to calculate isosurface from. The user should use this CanApplyGenerateIsosurface Method instead of instantiating such an object.

GenerateIsosurface Method takes an IGDocument Object and extracts the 3D surface into a vector page, based on the options specified by IGVector3DIVOptions Object. The algorithm itself takes an IGDocument Objectas the data source, so there is no limitation as far as the image format is concerned. It is the user's responsibility to somehow read data from the images and store them in an IGDocument Object. It is important to make sure that the slices of images in the IGDocument Object are in the desired order as it would be in the 3D object.

This algorithm generates an IGPage Object as a result, in which the vertices of triangles together with the normals at those vertices are included.

For a complete sample program, please see the "Medical" sample for ImageGear.

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback