Geometry#

The Geometry class represents atomic geometry objects displayed in the VTK viewer, providing a unified interface for point clouds, orientations, and surface data with associated visualization properties.

Constructor#

Geometry

VTK-based geometry representation for 3D point clouds and meshes.

Core Data Properties#

Geometry.points

3D point coordinates of the geometry.

Geometry.normals

Normal vectors at each point.

Geometry.quaternions

Orientation quaternions for each point.

Geometry.sampling_rate

Geometry.actor

VTK actor object for rendering.

Geometry.visible

Visibility state of the geometry.

Visualization Control#

Geometry.set_color([color])

Set uniform color for all points in the geometry.

Geometry.set_visibility([visibility])

Set geometry visibility in the scene.

Geometry.set_appearance([size, opacity, ...])

Set visual appearance properties of the geometry.

Geometry.change_representation([representation])

Change the visual representation mode of the geometry.

Point Coloring#

Geometry.color_points(point_ids, color)

Color specific points in the geometry using set_scalars backend.

Geometry.set_scalars(scalars, color_lut[, ...])

Set scalar data for coloring points.

Data Manipulation#

Geometry.swap_data(points[, normals, faces, ...])

Replace geometry data with new point cloud or mesh data.

Geometry.merge(geometries)

Merge multiple geometry objects into a single geometry.

Utility Functions#

Geometry.get_number_of_points()

Get total number of points in the geometry.

Geometry.compute_distance(query_points[, k])

VolumeGeometry#

The VolumeGeometry class extends Geometry to handle volumetric data with isosurface rendering capabilities for 3D volume visualization.

Constructor#

VolumeGeometry

Geometry class specialized for 3D volume rendering with isosurfaces.

Volume Operations#

VolumeGeometry.update_isovalue(upper[, lower])

Update the isovalue for volume surface rendering.

VolumeGeometry.update_isovalue_quantile(...)

Update isovalue using quantile-based thresholds.

GeometryTrajectory#

The GeometryTrajectory class handles time-series geometry data, enabling animation and temporal analysis of evolving geometric structures.

Constructor#

GeometryTrajectory

Geometry class for displaying animated trajectory sequences.

Trajectory Control#

GeometryTrajectory.frames

Number of frames in the trajectory.

GeometryTrajectory.display_frame(frame_idx)

Display specific trajectory frame.