public class ThreeDSImage extends Image
3DS image class. Allows to load 3D models from 3DS files. In example below 3D model loaded from file and exported to PDF. The resulting PDF file will contain projection of 3D model occupying the entire page with margins.
Loading of 3DS model and exporting of ThreeDSImage into PDF document of desired size.using (ThreeDSImage image = (ThreeDSImage)Image.Load(inFileName)) { PdfOptions pdfOptions = new PdfOptions(); var rasterizationOptions = new CadRasterizationOptions(); rasterizationOptions.PageWidth = 1600; rasterizationOptions.PageHeight = 1600; pdfOptions.VectorRasterizationOptions = rasterizationOptions; image.Save(outFileName, pdfOptions); }
Image| Constructor and Description |
|---|
ThreeDSImage() |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheData()
Caches the data and ensures no additional data loading will be performed
from the underlying
DataStreamSupporter.DataStreamContainer. |
Vector3F |
getAmbientLight()
The ambient light color.
|
int |
getDepth()
Gets the image depth.
|
int |
getHeight()
Gets the image height.
|
List<ThreeDSMaterial> |
getMaterials() |
List<ThreeDSMesh> |
getMeshes()
The list of the meshes.
|
long |
getMeshVersion()
The Version.
|
long |
getThreeDSVersion()
The Version.
|
int |
getWidth()
Gets the image width.
|
boolean |
hasMaterials() |
boolean |
hasMeshes()
Gets a value indicating whether object has materials.
|
boolean |
isCached()
Gets a value indicating whether object's data is cached currently and no data readig is required.
|
void |
setAmbientLight(Vector3F value)
The ambient light color.
|
void |
updateImage() |
canLoad, canLoad, canLoad, canLoad, canSave, getAnnotationService, getBounds, getContainer, getCustomProperties, getFileFormat, getFileFormat, getPalette, getSize, getStrings, getUnitlessDefaultUnitType, getUnitType, getWatermarkGuardService, load, load, load, load, load, save, save, save, setPalettegetDataStreamContainer, save, save, save, saveclose, dispose, getDisposedpublic int getWidth()
Gets the image width.
Value: The image width.Prints drawing's widthImage drawing = ... System.Console.WriteLine("Drawing's width: " + drawing.Width);
getWidth in interface IObjectWithBoundsgetWidth in class Imagepublic int getHeight()
Gets the image height.
Value: The image height.Prints drawing's heightImage drawing = ... System.Console.WriteLine("Drawing's height: " + drawing.Height);
getHeight in interface IObjectWithBoundsgetHeight in class Imagepublic int getDepth()
Gets the image depth.
Value: The image depth.Prints drawing's depthImage drawing = ... System.Console.WriteLine("Drawing's depth: " + drawing.Depth);
public boolean isCached()
Gets a value indicating whether object's data is cached currently and no data readig is required.
Value:true if object's data is cached; otherwise, false.isCached in class DataStreamSupporterpublic final void updateImage()
public final long getThreeDSVersion()
The Version.
public final long getMeshVersion()
The Version.
public final Vector3F getAmbientLight()
The ambient light color.
public final void setAmbientLight(Vector3F value)
The ambient light color.
public final boolean hasMaterials()
public final List<ThreeDSMaterial> getMaterials()
public final boolean hasMeshes()
Gets a value indicating whether object has materials.
public final List<ThreeDSMesh> getMeshes()
The list of the meshes.
public void cacheData()
Caches the data and ensures no additional data loading will be performed
from the underlying DataStreamSupporter.DataStreamContainer.
cacheData in class DataStreamSupportercom.aspose.ms.System.NotImplementedExceptionCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.