Class RvmLoadOptions
Contents
[
Hide
]RvmLoadOptions class
Load options for AVEVA Plant Design Management System’s RVM file.
public class RvmLoadOptions : LoadOptions
Constructors
| Name | Description |
|---|---|
| RvmLoadOptions() | Construct a RvmLoadOptions instance |
| RvmLoadOptions(FileContentType) | Construct a RvmLoadOptions instance |
Properties
| Name | Description |
|---|---|
| AttributePrefix { get; set; } | Gets or sets the prefix of the attributes that were defined in external attribute files, The prefix are used to avoid name conflicts, default value is “rvm:” |
| CenterScene { get; set; } | Center the scene after it’s loaded. |
| CylinderRadialSegments { get; set; } | Gets or sets the number of cylinder’s radial segments, default value is 16 |
| DishLatitudeSegments { get; set; } | Gets or sets the number of dish’ latitude segments, default value is 8 |
| DishLongitudeSegments { get; set; } | Gets or sets the number of dish’ longitude segments, default value is 12 |
| Encoding { get; set; } | Gets or sets the default encoding for text-based files. Default value is null which means the importer/exporter will decide which encoding to use. |
| FileFormat { get; } | Gets the file format that specified in current Save/Load option. |
| FileName { get; set; } | The file name of the exporting/importing scene. This is optional, but useful when serialize external assets like OBJ’s material. |
| FileSystem { get; set; } | Allow user to handle how to manage the external dependencies during load/save. |
| GenerateMaterials { get; set; } | Generate materials with random colors for each objects in the scene if color table is not exported within the RVM file. Default value is true |
| LookupAttributes { get; set; } | Gets or sets whether to load attributes from external attribute list file(.att/.attrib/.txt), default value is true. |
| LookupPaths { get; set; } | Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load. |
| RectangularTorusSegments { get; set; } | Gets or sets the number of rectangular torus’ radial segments, default value is 20 |
| TorusTubularSegments { get; set; } | Gets or sets the number of torus’ tubular segments, default value is 20 |
Examples
The following code shows how to customize the tessellation parameters for primitive geometries imported from RVM file using RvmLoadOptions.
RvmLoadOptions opt = new RvmLoadOptions();
opt.RectangularTorusSegments = 30;
opt.CylinderRadialSegments = 20;
opt.DishLatitudeSegments = 20;
opt.DishLongitudeSegments = 20;
opt.CenterScene = true;
var scene = Scene.FromFile("input.rvm", opt);
scene.Save("output.obj");
See Also
- class LoadOptions
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D