Skip to contents

Tube geometry that sweeps a circular cross-section along a curved path defined by control points. Used to render electrode shafts and tract trajectories in the three-brain viewer.

Author

Zhengjia Wang

Super class

AbstractGeom -> TubeGeom

Public fields

type

Geometry type string ("tube").

radial_segments

Number of segments around the tube circumference.

tubular_segments

Number of segments along the tube path.

control_data

Flattened numeric vector (row-major) of control points; each row encodes x, y, z, t (normalized path position 0-1), and radius.

image_uri

Base64 data URI of the tube texture image, or NULL for a plain color.

Methods

Inherited methods


TubeGeom$new()

Create a new tube geometry.

Usage

TubeGeom$new(name, control_data, image_uri = NULL, ...)

Arguments

name

Unique character name.

control_data

Numeric matrix with 5 columns: x, y, z, t (path position), radius. Must have at least 2 rows.

image_uri

Optional base64 data URI string for a texture image.

...

Additional arguments forwarded to AbstractGeom.


TubeGeom$to_list()

Serialize the tube geometry to a named list for JSON export.

Usage

TubeGeom$to_list()


TubeGeom$clone()

The objects of this class are cloneable with this method.

Usage

TubeGeom$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.