Surface of revolution generator: sweeps a 2D profile around the vertical (Z) axis and outputs the resulting mesh (vertices, indices, wireframe lines) and its two edge profiles. The module draws nothing itself: its outputs are meant for the 3D primitives, such as object3d-primitive-lines.
vertices = [0.01,0.01, 0.02,0.01, 0.04,0.02, 0.05,0.03, 0.08,0.05, 0.12,0.05, 0.14,0.05]
division = 20
angle = 90
direction = 2
builds a bowl section of 21 copies of the 7-point profile, from -45° to +45° around the Z axis: 147 points (441 values) on the vertices outlet and 240 triangles (720 values) on the indices outlet.
Profile to revolve, as X, Z pairs: [x0,z0, x1,z1, ...]. X is the distance from the axis of revolution and Z the height. The number of points is half the length of the array (an odd last value is ignored); the values are not limited. With fewer than 4 values (2 points), the module writes the 7-point demo profile of the example above into this inlet, so that it produces a visible bowl out of the box.
Position of the axis of revolution, as an [x,y,z] array: the axis is vertical and goes through the point (x, y); z is added to the heights of the profile. With fewer than 3 values (default: empty), the axis goes through the origin.
Number of angular steps of the sweep, from 0 to 5000 (default 20); 0 is taken as 1. The mesh holds division + 1 copies (rings) of the profile.
Total angle of the sweep in degrees, from -360 to 360 (default 90). At 360 the first and last rings are at the same place but are not joined.
Position of the sweep around the profile, which is at angle 0:
Rotation of the whole surface around its axis, in degrees, from -360 to 360 (default 0).
When ON, inverts the faces of the mesh (winding order of the triangles). The module already keeps the orientation of the faces stable when its settings change: it inverts them when the main vertical direction of their normals changes sign. This switch inverts the result.
Output: points of the mesh, as X, Y, Z triplets, ring after ring (the vertices points of one ring are consecutive).
Triangles of the mesh, as 3 indices (from 0) of points of the vertices output per triangle. Each quad between two rings and two consecutive profile points gives 2 triangles.
object3d-primitive-triangles has no indices inlet: it takes the 3 points (9 values) of each triangle. To display the filled surface, write vertices and indices into a chunk as the items vertices-000 and indexes-000 (with chunk-item-operation) and display that chunk with object3d-mesh.
Wireframe of the mesh, as pairs of points X0,Y0,Z0, X1,Y1,Z1, ... (6 values per segment): the border edges and the edges between two faces that are not coplanar. Connect it to the vertices points of an object3d-primitive-lines to display it.
Points of the first ring of the sweep (start angle), as X, Y, Z triplets. Their Y coordinates are the opposite of those of the same points in the vertices output.
Points of the last ring of the sweep (end angle), as X, Y, Z triplets, with the same Y convention as left profile.
Button. Opens the manual page of the selected object (or of its parent module for a control) in the web browser. If no page exists for this object, an error is traced in the trace panel.
For more details about information/help creation, see create-help-file.
Free multi-line text attached to the module, saved with the patch. When it is not empty, it is shown as the hint of the module (mouse over the module header in the patch) in place of the default module hint, even when the module hints are disabled.
visible only in god mode, see setup-panel-tab-expert.
Read-only, not saved. Current private numeric ID of the object, used internally to identify it (for example as the target of a bind ID).
Read-only, not saved. Private ID used to store and recall the values of this control in presets.
Button. Generates a new unique ID, original ID and preset ID for the object. Use it if you experience difficulties in Polyphonic mode or if two objects share the same ID. Preset values and binds referring to the old IDs are lost.
Read-only, not saved. Absolute address of the object in the Usine objects tree, built from the workspace root. This is the address to use to reach the object from scripts, the objects panel or remote messages. Only shown for objects that are registered in the objects list. See objects-address.
Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.
Free user-defined address for the object (empty by default). When set, the object is also registered in the objects tree under this name, so it can be reached independently of its position in the workspace (the value is also reported in the mouse-over and mouse-down chunks). Changing it rebuilds the objects list. Only available on objects that support a user address. See objects-address.
version 7.0.250921
Edit All Pages