ThreeMfFormat
Overview
ThreeMfFormat is a class in Aspose.3D FOSS for Python.
ThreeMfFormat.extension provides the primary file extension for the 3MF format.
This class provides 7 methods for working with ThreeMfFormat objects in Python programs.
Available methods include: create_load_options, create_save_options, get_object_type, get_transform_for_build, is_buildable, set_buildable, set_object_type.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: can_export, can_import, content_type, extension, extensions, file_format_type, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
extension | str | Read | Gets the extension. |
extensions | List[str] | Read | Gets the extensions. |
content_type | str | Read | Gets the content type. |
file_format_type | `` | Read | Gets the file format type. |
version | str | Read | Gets the version. |
can_export | bool | Read | Gets the can export. |
can_import | bool | Read | Gets the can import. |
formats | List | Read | Gets the formats. |
Methods
| Signature | Description |
|---|---|
create_load_options() | Creates a new load options instance for 3MF files |
create_save_options() | Creates a new save options instance for 3MF files |
is_buildable(node) → bool | Returns True if the given node can be used as a build item |
get_transform_for_build(node) → Optional[Matrix4] | Returns the build transform matrix for the node, or None |
set_buildable(node, value: bool, transform: Optional[Matrix4]) | Sets the buildable value. |
set_object_type(node, model_type: str) | Sets the object type value. |
get_object_type(node) → str | Retrieves the 3MF object type string of the node |