three.MF.V3.Descriptors.ScanData
1from enum import Enum 2from typing import List 3 4 5class ScanData: 6 7 """ 8 Scan data descriptor. 9 """ 10 class Buffer: 11 12 """ 13 Scan buffer descriptor. 14 """ 15 class Component: 16 17 """ 18 Scan buffer component descriptor. 19 """ 20 class Type(Enum): 21 22 """ 23 Scan buffer component types. 24 """ 25 Position = "Position" # Vertex position. 26 Normal = "Normal" # Vertex normal. 27 Color = "Color" # Vertex color. 28 UV = "UV" # Vertex texture coordinate. 29 Quality = "Quality" # Vertex quality. 30 Triangle = "Triangle" # Triangle index. 31 Texture = "Texture" # Texture. 32 33 def __init__(self, type: 'Type', size: int, offset: int, normalized: bool): 34 # Scan buffer component type. 35 self.type = type 36 # Scan buffer component size (ie. the number of elements). 37 self.size = size 38 """ 39 Scan buffer component offset. 40 This is the starting element for this component at every stride of the buffer. 41 """ 42 self.offset = offset 43 # Indicates if the data is normalized. 44 self.normalized = normalized 45 46 def __init__(self, stride: int, components: List['Component'] = None): 47 # Scan buffer stride. This should be greater or equal to the sum of the component sizes. 48 self.stride = stride 49 # Scan buffer components. 50 self.components = components 51 52 def __init__(self, index: int, name: str, buffers: List['Buffer'] = None, mean: List[float] = None, stddev: List[float] = None, axisAlignedBoundingBox: List[float] = None): 53 # Scan index. 54 self.index = index 55 # Scan name. 56 self.name = name 57 # Scan buffer descriptors. 58 self.buffers = buffers 59 # The mean (centroid) of the vertex positions. 60 self.mean = mean 61 # The standard deviation of the vertex positions. 62 self.stddev = stddev 63 # The axis-aligned bounding box of the vertex positions. 64 self.axisAlignedBoundingBox = axisAlignedBoundingBox
class
ScanData:
6class ScanData: 7 8 """ 9 Scan data descriptor. 10 """ 11 class Buffer: 12 13 """ 14 Scan buffer descriptor. 15 """ 16 class Component: 17 18 """ 19 Scan buffer component descriptor. 20 """ 21 class Type(Enum): 22 23 """ 24 Scan buffer component types. 25 """ 26 Position = "Position" # Vertex position. 27 Normal = "Normal" # Vertex normal. 28 Color = "Color" # Vertex color. 29 UV = "UV" # Vertex texture coordinate. 30 Quality = "Quality" # Vertex quality. 31 Triangle = "Triangle" # Triangle index. 32 Texture = "Texture" # Texture. 33 34 def __init__(self, type: 'Type', size: int, offset: int, normalized: bool): 35 # Scan buffer component type. 36 self.type = type 37 # Scan buffer component size (ie. the number of elements). 38 self.size = size 39 """ 40 Scan buffer component offset. 41 This is the starting element for this component at every stride of the buffer. 42 """ 43 self.offset = offset 44 # Indicates if the data is normalized. 45 self.normalized = normalized 46 47 def __init__(self, stride: int, components: List['Component'] = None): 48 # Scan buffer stride. This should be greater or equal to the sum of the component sizes. 49 self.stride = stride 50 # Scan buffer components. 51 self.components = components 52 53 def __init__(self, index: int, name: str, buffers: List['Buffer'] = None, mean: List[float] = None, stddev: List[float] = None, axisAlignedBoundingBox: List[float] = None): 54 # Scan index. 55 self.index = index 56 # Scan name. 57 self.name = name 58 # Scan buffer descriptors. 59 self.buffers = buffers 60 # The mean (centroid) of the vertex positions. 61 self.mean = mean 62 # The standard deviation of the vertex positions. 63 self.stddev = stddev 64 # The axis-aligned bounding box of the vertex positions. 65 self.axisAlignedBoundingBox = axisAlignedBoundingBox
Scan data descriptor.
ScanData( index: int, name: str, buffers: List[ScanData.Buffer] = None, mean: List[float] = None, stddev: List[float] = None, axisAlignedBoundingBox: List[float] = None)
53 def __init__(self, index: int, name: str, buffers: List['Buffer'] = None, mean: List[float] = None, stddev: List[float] = None, axisAlignedBoundingBox: List[float] = None): 54 # Scan index. 55 self.index = index 56 # Scan name. 57 self.name = name 58 # Scan buffer descriptors. 59 self.buffers = buffers 60 # The mean (centroid) of the vertex positions. 61 self.mean = mean 62 # The standard deviation of the vertex positions. 63 self.stddev = stddev 64 # The axis-aligned bounding box of the vertex positions. 65 self.axisAlignedBoundingBox = axisAlignedBoundingBox
class
ScanData.Buffer:
11 class Buffer: 12 13 """ 14 Scan buffer descriptor. 15 """ 16 class Component: 17 18 """ 19 Scan buffer component descriptor. 20 """ 21 class Type(Enum): 22 23 """ 24 Scan buffer component types. 25 """ 26 Position = "Position" # Vertex position. 27 Normal = "Normal" # Vertex normal. 28 Color = "Color" # Vertex color. 29 UV = "UV" # Vertex texture coordinate. 30 Quality = "Quality" # Vertex quality. 31 Triangle = "Triangle" # Triangle index. 32 Texture = "Texture" # Texture. 33 34 def __init__(self, type: 'Type', size: int, offset: int, normalized: bool): 35 # Scan buffer component type. 36 self.type = type 37 # Scan buffer component size (ie. the number of elements). 38 self.size = size 39 """ 40 Scan buffer component offset. 41 This is the starting element for this component at every stride of the buffer. 42 """ 43 self.offset = offset 44 # Indicates if the data is normalized. 45 self.normalized = normalized 46 47 def __init__(self, stride: int, components: List['Component'] = None): 48 # Scan buffer stride. This should be greater or equal to the sum of the component sizes. 49 self.stride = stride 50 # Scan buffer components. 51 self.components = components
Scan buffer descriptor.
ScanData.Buffer( stride: int, components: List[ScanData.Buffer.Component] = None)
class
ScanData.Buffer.Component:
16 class Component: 17 18 """ 19 Scan buffer component descriptor. 20 """ 21 class Type(Enum): 22 23 """ 24 Scan buffer component types. 25 """ 26 Position = "Position" # Vertex position. 27 Normal = "Normal" # Vertex normal. 28 Color = "Color" # Vertex color. 29 UV = "UV" # Vertex texture coordinate. 30 Quality = "Quality" # Vertex quality. 31 Triangle = "Triangle" # Triangle index. 32 Texture = "Texture" # Texture. 33 34 def __init__(self, type: 'Type', size: int, offset: int, normalized: bool): 35 # Scan buffer component type. 36 self.type = type 37 # Scan buffer component size (ie. the number of elements). 38 self.size = size 39 """ 40 Scan buffer component offset. 41 This is the starting element for this component at every stride of the buffer. 42 """ 43 self.offset = offset 44 # Indicates if the data is normalized. 45 self.normalized = normalized
Scan buffer component descriptor.
ScanData.Buffer.Component( type: ScanData.Buffer.Component.Type, size: int, offset: int, normalized: bool)
34 def __init__(self, type: 'Type', size: int, offset: int, normalized: bool): 35 # Scan buffer component type. 36 self.type = type 37 # Scan buffer component size (ie. the number of elements). 38 self.size = size 39 """ 40 Scan buffer component offset. 41 This is the starting element for this component at every stride of the buffer. 42 """ 43 self.offset = offset 44 # Indicates if the data is normalized. 45 self.normalized = normalized
class
ScanData.Buffer.Component.Type(enum.Enum):
21 class Type(Enum): 22 23 """ 24 Scan buffer component types. 25 """ 26 Position = "Position" # Vertex position. 27 Normal = "Normal" # Vertex normal. 28 Color = "Color" # Vertex color. 29 UV = "UV" # Vertex texture coordinate. 30 Quality = "Quality" # Vertex quality. 31 Triangle = "Triangle" # Triangle index. 32 Texture = "Texture" # Texture.
Scan buffer component types.