Grid#

Grid#

Constructor#

Grid([geometry, material, render_order])

Properties#

Grid.axis_color

The color of the axis lines.

Grid.axis_thickness

The thickness of the axis lines.

Grid.cast_shadow

Whether this object casts shadows, i.e. whether it is rendered into a shadow map.

Grid.children

tuple of children of this object.

Grid.geometry

The object's geometry, the data that defines (the shape of) this object.

Grid.id

An integer id smaller than 2**31 (read-only).

Grid.infinite

Whether the grid is infinite.

Grid.major_color

The color of the major grid lines.

Grid.major_step

The step distance between the major grid lines.

Grid.major_thickness

The thickness of the major grid lines.

Grid.material

The object's material, the data that defines the appearance of this object.

Grid.minor_color

The color of the minor grid lines.

Grid.minor_step

The step distance between the minor grid lines.

Grid.minor_thickness

The thickness of the minor grid lines.

Grid.nonlinear_transform

An optional nonlinear transform, expressed as WGSL shader code, applied to the raw vertex positions.

Grid.parent

Object's parent in the scene graph (read-only).

Grid.receive_shadow

Whether this object receives shadows.

Grid.render_mask

Grid.render_order

Per-object rendering priority used to fine-tune the draw order within a render queue.

Grid.thickness_space

The coordinate space in which the thicknesses are expressed.

Grid.up

Relic of old WorldObjects that aliases with the new transform.up direction.

Grid.visible

Whether is object is rendered or not.

Methods#

Grid.add(*objects[, before, keep_world_matrix])

Add child objects.

Grid.add_event_handler(*args)

Register an event handler.

Grid.clear(*[, keep_world_matrix])

Removes all children.

Grid.get_bounding_box()

Axis-aligned bounding box in local model space.

Grid.get_bounding_sphere()

Bounding Sphere in local model space.

Grid.get_geometry_bounding_box()

Grid.get_world_bounding_box()

Axis aligned bounding box in world space.

Grid.get_world_bounding_sphere()

Bounding Sphere in world space.

Grid.handle_event(event)

Handle an incoming event.

Grid.iter([filter_fn, skip_invisible])

Create a generator that iterates over this objects and its children.

Grid.look_at(target)

Orient the object so it looks at the given position.

Grid.release_pointer_capture(pointer_id)

Release the pointer capture for the object that was registered to the given pointer_id.

Grid.remove(*objects[, keep_world_matrix])

Removes object as child of this object.

Grid.remove_event_handler(callback, *types)

Unregister an event handler.

Grid.set_pointer_capture(pointer_id, event_root)

Register this object to capture any other pointer events, until release_pointer_capture is called or an pointer_up event is encountered.

Grid.traverse(callback[, skip_invisible])

Executes the callback on this object and all descendants.