C# Class Canguro.Commands.Model.AddCylinderCmd

Command to create a frame based cylinder
Inheritance: Canguro.Commands.ModelCommand
Mostra file Open project: rforsbach/Treu-Structure

Protected Properties

Property Type Description
c int
r float

Private Properties

Property Type Description

Public Methods

Method Description
Run ( Canguro services ) : void

Executes the command. Gets the parameters and calls createCylinder to add a Cylinder to the model

Protected Methods

Method Description
createCylinder ( Canguro model, System.Vector3 C, float radius, int cols, float height, int stories, StraightFrameProps props ) : void

Creates a cylinder and adds it to the model.

Method Details

Run() public method

Executes the command. Gets the parameters and calls createCylinder to add a Cylinder to the model
public Run ( Canguro services ) : void
services Canguro CommandServices object to interact with the system
return void

createCylinder() protected method

Creates a cylinder and adds it to the model.
protected createCylinder ( Canguro model, System.Vector3 C, float radius, int cols, float height, int stories, StraightFrameProps props ) : void
model Canguro The Model object
C System.Vector3 The Center of the base
radius float The radius
cols int Number of columns
height float Height of each story
stories int Number of stories
props Canguro.Model.StraightFrameProps Frame properties to use in all elements
return void

Property Details

c protected_oe static_oe property

protected static int c
return int

r protected_oe static_oe property

protected static float r
return float