three.MF.V3.Settings.Import
1from enum import Enum 2 3 4class Import: 5 6 """ 7 Import mesh settings. 8 """ 9 class Unit(Enum): 10 11 """ 12 Unit of imported mesh positions. 13 """ 14 Millimeter = "Millimeter" # Mesh positions in millimeters. 15 Centimeter = "Centimeter" # Mesh positions in centimeters. 16 Meter = "Meter" # Mesh positions in meters. 17 Inch = "Inch" # Mesh positions in inches. 18 Foot = "Foot" # Mesh positions in feet. 19 20 def __init__(self, name: str = None, scale: float = None, unit: 'Unit' = None, center: bool = None, groupIndex: int = None): 21 # Optional name of the impored mesh. Ignored if the imported file is a zip archive, in which case the archive filenames are used. 22 self.name = name 23 # Optional scale factor for mesh positions. Default is 1.0. 24 self.scale = scale 25 # Unit of imported mesh positions. Default is millimeters. Ignored if the scale is specified. 26 self.unit = unit 27 # If true the mesh is centered at the world origin. Default is true. 28 self.center = center 29 # Project group index in which to add the imported meshes. Default is 0 (root group). 30 self.groupIndex = groupIndex
class
Import:
5class Import: 6 7 """ 8 Import mesh settings. 9 """ 10 class Unit(Enum): 11 12 """ 13 Unit of imported mesh positions. 14 """ 15 Millimeter = "Millimeter" # Mesh positions in millimeters. 16 Centimeter = "Centimeter" # Mesh positions in centimeters. 17 Meter = "Meter" # Mesh positions in meters. 18 Inch = "Inch" # Mesh positions in inches. 19 Foot = "Foot" # Mesh positions in feet. 20 21 def __init__(self, name: str = None, scale: float = None, unit: 'Unit' = None, center: bool = None, groupIndex: int = None): 22 # Optional name of the impored mesh. Ignored if the imported file is a zip archive, in which case the archive filenames are used. 23 self.name = name 24 # Optional scale factor for mesh positions. Default is 1.0. 25 self.scale = scale 26 # Unit of imported mesh positions. Default is millimeters. Ignored if the scale is specified. 27 self.unit = unit 28 # If true the mesh is centered at the world origin. Default is true. 29 self.center = center 30 # Project group index in which to add the imported meshes. Default is 0 (root group). 31 self.groupIndex = groupIndex
Import mesh settings.
Import( name: str = None, scale: float = None, unit: Import.Unit = None, center: bool = None, groupIndex: int = None)
21 def __init__(self, name: str = None, scale: float = None, unit: 'Unit' = None, center: bool = None, groupIndex: int = None): 22 # Optional name of the impored mesh. Ignored if the imported file is a zip archive, in which case the archive filenames are used. 23 self.name = name 24 # Optional scale factor for mesh positions. Default is 1.0. 25 self.scale = scale 26 # Unit of imported mesh positions. Default is millimeters. Ignored if the scale is specified. 27 self.unit = unit 28 # If true the mesh is centered at the world origin. Default is true. 29 self.center = center 30 # Project group index in which to add the imported meshes. Default is 0 (root group). 31 self.groupIndex = groupIndex
class
Import.Unit(enum.Enum):
10 class Unit(Enum): 11 12 """ 13 Unit of imported mesh positions. 14 """ 15 Millimeter = "Millimeter" # Mesh positions in millimeters. 16 Centimeter = "Centimeter" # Mesh positions in centimeters. 17 Meter = "Meter" # Mesh positions in meters. 18 Inch = "Inch" # Mesh positions in inches. 19 Foot = "Foot" # Mesh positions in feet.
Unit of imported mesh positions.