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
| Name | Type | Access | Description |
|---|---|---|---|
extension | str | Read | Is the primary file extension string for the 3MF format (e.g., ‘.3mf’) |
extensions | List[str] | Read | Lists all recognized file extensions for the 3MF format |
content_type | str | Read | Provides the MIME type string for 3MF files |
file_format_type | `` | Read | Identifies the enumeration value representing the 3MF file format |
version | str | Read | Indicates the version string of the 3MF format supported |
can_export | bool | Read | Is True when the library can export scenes to 3MF files |
can_import | bool | Read | Is True when the library can import scenes from 3MF files |
formats | List | Read | Contains a list of format identifiers related to the 3MF handler |
Mètodes
| Signature | Description |
|---|---|
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) → bool | Returns 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) → str | Returns the model type string associated with the node in a 3MF file |