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

NameTypeAccessDescription
extensionstrReadGets the extension.
extensionsList[str]ReadGets the extensions.
content_typestrReadGets the content type.
file_format_type``ReadGets the file format type.
versionstrReadGets the version.
can_exportboolReadGets the can export.
can_importboolReadGets the can import.
formatsListReadGets the formats.

Methods

SignatureDescription
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)boolReturns 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)strRetrieves the 3MF object type string of the node

See Also