Version 0.55.1

helix

Transformation along helical lines.

Signatures

  •   helix( vector axis, float angle )
  •   helix( vector onset, vector axis, float angle )

Details

The helix transformation is a space point transformation that rotates all space points around a given axis. The amount of the rotation, i.e. the rotation angle changes linearly with the points's position along the axis, what results in a helical twisting.

Example

 document.render_vis_smooth = true
 make helix( <[0.5, 0.5, 1.0]>, <[0.0, 0.0, 1.0]>, PI/2.0 ) >>
      subdiv( 0.05, <[0.0, 0.0, 1.0]> ) >> box()
 

Result of the example: helix transformation on a subdivided box.

Casts To

string
modifier

Parameters

axis

Vector pointing into the helix direction.

angle

Defines the angle of rotation (in rad) along vector axis. Positive values follow a right-handed helix, negative values a left-handed one.

onset

A space point that acts as onset of the axis and thus as origin of the helix transformation.

See also

🗙

Search results for