ThreeMfFormat

General

ThreeMfFormat és una classe en Aspose.3d per a Python.

ThreeMfFormat proporciona mètodes per consultar i establir estatus de construcció i transformació per a nodes individuals, suportant característiques avançades de fabricació 3MF.

Propietats

NameTypeAccessDescription
extensionstrReadIs the primary file extension string for the 3MF format (e.g., ‘.3mf’)
extensionsList[str]ReadLists all recognized file extensions for the 3MF format
content_typestrReadProvides the MIME type string for 3MF files
file_format_type``ReadIdentifies the enumeration value representing the 3MF file format
versionstrReadIndicates the version string of the 3MF format supported
can_exportboolReadIs True when the library can export scenes to 3MF files
can_importboolReadIs True when the library can import scenes from 3MF files
formatsListReadContains a list of format identifiers related to the 3MF handler

Mètodes

SignatureDescription
create_load_options()Creates a new load options instance for importing 3MF files
create_save_options()Creates a new save options instance for exporting 3MF files
is_buildable(node)boolReturns True if the given node can be used as a build item in a 3MF package
get_transform_for_build(node)Optional[Matrix4]Returns the optional Matrix4 transform applied to the node for 3MF build
set_buildable(node, value: bool, transform: Optional[Matrix4])Marks the node as buildable and optionally assigns a Matrix4 transform
set_object_type(node, model_type: str)Assigns the specified model type string to the node’s 3MF object
get_object_type(node)strReturns the model type string associated with the node in a 3MF file
 Català