Skip to main content

record

Function record 

Source
pub fn record(part: &Part, out: &mut Vec<f32>)
Expand description

One part as the page draws it, RECORD floats: the mesh (0 a cube of side 1, 1 a cylinder of diameter and length 1 along y, both centred on the origin; turned as Part::flat says), the matrix that takes the mesh to the part in scene coordinates (4 × 4, column by column, as WebGL takes it), and the colour (part_color, red, green, blue in 0..1). A segment is a cube stretched from pos to to, width wide in the depth (y) and 4 mm thick, as in sim-app.