Specify 3D File Load Options

3D File Load Options

There are several Scene.open method overloads or Scene class constructor overloads that accept a LoadOptions object. This should be an object of a class derived from the LoadOptions class. Each load format has a corresponding class that holds load options for that load format, for example there is ColladaSaveOptions for the FileFormat.Collada save format.

Use of the Discreet 3DS Load Options

The code below shows how to set load options before loading a Discreet 3DS file.

Use of the Obj Load Options

The code below shows how to set load options before loading an 3D Obj file.

Use of the STL Load Options

The code below shows how to set load options before loading an STL file.

Use of the U3D Load Options

The code below shows how to set load options before loading a U3D file.

Use of the glTF Load Options

The code below shows how to set load options before loading a glTF file.

Flip the V/T Texture Coordinate

Use of the Ply Load Options

The code below shows how to set load options before loading a PLY model.

Use of the DirectX X Load Options

The code below shows how to set load options before loading a DirectX X file.

Use RVM load options

C#



import aspose.threed as a3d
# set load options of RVM

scene = a3d.Scene()

opt = a3d.formats.RvmLoadOptions()
opt.cylinder_radial_segments = 32
opt.dish_latitude_segments = 16
opt.dish_longitude_segments = 24
opt.torus_tubular_segments = 40

# import RVM

scene.open("LAD-TOP.rvm", opt);

# save in the OBJ format

scene.save("LAD-TOP.obj", a3d.FileFormat.WAVEFRONT_OBJ);

Using FBX Load Options