Skip to main content

add_primitive

Function add_primitive 

Source
pub fn add_primitive(
    p: &mut Project,
    parent: Option<NodeId>,
    name: &str,
    kind: PrimitiveKind,
    a: f32,
    b: f32,
    segments: u32,
    transform: Transform,
) -> (NodeId, MeshId)