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.

visible(value)

Access visibility of an object.

Parameters:

value (bool) – Whether the object is visible or hidden.

Return type:

tuple[tuple[str, bool], ...]

Returns:

The identifier-value pair.

class voraus_3d_visu.client.obj.axes.types.Axes(identifier, base='')

Bases: Axis

Describes an axes object.

property x_axis: Axis

Access the x axis of the axes object.

Returns:

The x axis object.

property y_axis: Axis

Access the y axis of the axes object.

Returns:

The y axis object.

property z_axis: Axis

Access the z axis of the axes object.

Returns:

The z axis object.

class voraus_3d_visu.client.obj.types.GeometryObj(identifier, base='')

Bases: Obj

Defines 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: GeometryObj

Describes a box object.

class voraus_3d_visu.client.obj.cylinder.types.Cylinder(identifier, base='')

Bases: GeometryObj

Describes a cylinder object.

class voraus_3d_visu.client.obj.line.types.Line(identifier, base='', segments=False)

Bases: Obj

Describes 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: Obj

Defines 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:

Model

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: GeometryObj

Describes a sphere object.

class voraus_3d_visu.client.obj.text_panel.types.TextPanel(identifier, base='')

Bases: Obj

Describes a text panel object.

property background: Background

Access the background of the text panel.

Returns:

The background object.

property font: Font

Access the font of the text panel.

Returns:

The font object.

property material: MaterialWithTransparency

The material of the text panel object.

Returns:

The material object.

text(text)

Apply text to a panel.

Parameters:

text (str) – The text to apply to a panel.

Return type:

tuple[tuple[str, str], ...]

Returns:

The identifier-value pair.

class voraus_3d_visu.client.obj.point_cloud.types.PointCloud(identifier, base='')

Bases: Obj

Describes 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.