voraus_3d_visu Object Types
- class voraus_3d_visu.client.obj.types.Obj(identifier, base='')
Defines a 3D object for the visualization.
- property material: Material
Access the material property of an object.
- Returns:
The material object.
- parent(parent)
Attach object to a parent.
- Parameters:
parent (
Obj|None) – The parent object to be attached to, if None this object will be detached.- Return type:
tuple[tuple[str,str],...]- Returns:
The identifier-value pair for parenting an object.
- render_order(value)
Access the render order of an object, overriding the default draw-order sort.
Mainly relevant for transparent objects without depth writing, where draw order (not depth) determines blending order against other transparent objects.
- Parameters:
value (
float) – The render order value.- Return type:
tuple[tuple[str,float],...]- Returns:
The identifier-value pair.
- render_order_recursive(value)
Access the render order of an object and all descending children.
Render order does not cascade to children in the browser dispatcher’s underlying renderer, unlike most other object properties.
- Parameters:
value (
float) – The render order value.- Return type:
tuple[tuple[str,float],...]- Returns:
The identifier-value pair.
- class voraus_3d_visu.client.obj.axes.types.Axes(identifier, base='')
Bases:
AxisDescribes an axes object.
- class voraus_3d_visu.client.obj.types.GeometryObj(identifier, base='')
Bases:
ObjDefines a 3D geometry object for the visualization.
- property material: MeshStandardMaterial
Access the material property of a geometry object.
- Returns:
The material object.
- class voraus_3d_visu.client.obj.box.types.Box(identifier, base='')
Bases:
GeometryObjDescribes a box object.
- class voraus_3d_visu.client.obj.cylinder.types.Cylinder(identifier, base='')
Bases:
GeometryObjDescribes a cylinder object.
- class voraus_3d_visu.client.obj.line.types.Line(identifier, base='', segments=False)
Bases:
ObjDescribes a line object.
- property material: LineBasicMaterial
Access the material property of a line object.
- Returns:
The material object.
- points(points)
Access points of a line object.
- Parameters:
points (
Sequence[tuple[float,float,float]] |Sequence[tuple[int,int,int]]) – A sequence of points defining the line.- Return type:
tuple[tuple[str,Sequence[tuple[float,float,float]] |Sequence[tuple[int,int,int]]],...]- Returns:
The identifier-value pair.
- class voraus_3d_visu.client.obj.model.types.Model(identifier, base='', unique_material=None)
Bases:
ObjDefines a model object with properties for the visualization.
- child(identifier)
Returns the child of a model.
- Parameters:
identifier (
str) – The identifier of the child. Must match the name inside the gltf-file.- Return type:
- Returns:
The child model.
- property material: MeshStandardMaterial
Access helper for the material property of an object with recursive setting.
- Raises:
RuntimeError – If unique_material of object is not explicitly set.
- Returns:
Access helper class for material properties.
- class voraus_3d_visu.client.obj.sphere.types.Sphere(identifier, base='')
Bases:
GeometryObjDescribes a sphere object.
- class voraus_3d_visu.client.obj.text_panel.types.TextPanel(identifier, base='')
Bases:
ObjDescribes a text panel object.
- property background: Background
Access the background of the text panel.
- Returns:
The background object.
- class voraus_3d_visu.client.obj.point_cloud.types.PointCloud(identifier, base='')
Bases:
ObjDescribes a point cloud object.
- data(data)
Creates a identifier-value pair for writing the point cloud data.
- Parameters:
data (
bytes) – The byte data to write.- Return type:
tuple[tuple[str,str],...]- Returns:
The identifier-value pair.
- property material: PointsMaterial
Access the material property of a point cloud object.
- Returns:
The material object.