Functions | |
def | primOrIcon |
DRAW METHODS. More... | |
def | cube |
Create a curve with a CUBE shape. More... | |
def | pyramid |
Create a curve with a PYRAMIDE shape. More... | |
def | square |
Create a curve with a SQUARE shape. More... | |
def | boomerang |
Create a curve with a BOOMERANG shape. More... | |
def | pointer |
Create a curve with a POINTER shape. More... | |
def | flower |
Create a curve with a FLOWER shape. More... | |
def | circle |
Create a curve with a CIRCLE shape. More... | |
def | cylinder |
Create a curve with a CYLINDER shape. More... | |
def | compas |
Create a curve with a COMPAS shape. More... | |
def | foil |
Create a curve with a FOIL shape. More... | |
def | diamond |
Create a curve with a DIAMOND shape. More... | |
def | leash |
Create a curve with a LEASH shape. More... | |
def | cubewithpeak |
Create a curve with a CUBE WITH PEAK shape. More... | |
def | sphere |
Create a curve with a SPHERE shape. More... | |
def | arrow |
Create a curve with a ARROW shape. More... | |
def | crossarrow |
Create a curve with a CROSS ARROW shape. More... | |
def | bendedarrow |
Create a curve with a BENDED ARROW shape. More... | |
def | bendedarrow2 |
Create a curve with a BENDED ARROW shape. More... | |
def | cross |
Create a curve with a CROSS shape. More... | |
def | glasses |
Create a curve with GLASSES shape. More... | |
def | lookat |
Create a curve with a LOOKAT shape. More... | |
def | eyearrow |
Create a curve with a EYE ARROW shape. More... | |
def | anglesurvey |
Create a curve with a ANGLE SURVEY shape. More... | |
def | eyeball |
Create a curve with a EYE BALL shape. More... | |
def | rectanglecube |
Create a curve with a RECTANGLE CUBE shape. More... | |
def | man |
Create a curve with a MAN shape. More... | |
def | null |
Create a curve with a NULL shape. More... | |
def | getPointArrayWithOffset |
MISC. More... | |
This file is part of GEAR_mc. GEAR_mc is a fork of Jeremie Passerin's GEAR project. GEAR is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.html>. Author: Jeremie Passerin geerem@hotmail.com www.jeremiepasserin.com Fork Author: Miquel Campos hello@miqueltd.com www.miqueltd.com Date: 2013 / 08 / 16
def gear.xsi.icon.anglesurvey | ( | parent = xsi.ActiveSceneRoot , |
|
name = "angleSurvey" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a ANGLE SURVEY shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.arrow | ( | parent = xsi.ActiveSceneRoot , |
|
name = "arrow" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a ARROW shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.bendedarrow | ( | parent = xsi.ActiveSceneRoot , |
|
name = "bendedArrow" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a BENDED ARROW shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.bendedarrow2 | ( | parent = xsi.ActiveSceneRoot , |
|
name = "bendedArrow2" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a BENDED ARROW shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.boomerang | ( | parent = xsi.ActiveSceneRoot , |
|
name = "boomerang" , |
|||
width = 1 , |
|||
depth = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a BOOMERANG shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
depth | Double - Depth of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.circle | ( | parent = xsi.ActiveSceneRoot , |
|
name = "circle" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a CIRCLE shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.compas | ( | parent = xsi.ActiveSceneRoot , |
|
name = "compas" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a COMPAS shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.cross | ( | parent = xsi.ActiveSceneRoot , |
|
name = "cross" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a CROSS shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.crossarrow | ( | parent = xsi.ActiveSceneRoot , |
|
name = "crossArrow" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a CROSS ARROW shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.cube | ( | parent = xsi.ActiveSceneRoot , |
|
name = "cube" , |
|||
width = 1 , |
|||
height = 1 , |
|||
depth = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a CUBE shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
height | Double - Height of the shape. |
depth | Double - Depth of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.cubewithpeak | ( | parent = xsi.ActiveSceneRoot , |
|
name = "cubewithpeak" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a CUBE WITH PEAK shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.cylinder | ( | parent = xsi.ActiveSceneRoot , |
|
name = "cylinder" , |
|||
width = 1 , |
|||
heigth = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a CYLINDER shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.diamond | ( | parent = xsi.ActiveSceneRoot , |
|
name = "diamond" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a DIAMOND shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.eyearrow | ( | parent = xsi.ActiveSceneRoot , |
|
name = "eyeArrow" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a EYE ARROW shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.eyeball | ( | parent = xsi.ActiveSceneRoot , |
|
name = "eyeBall" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a EYE BALL shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.flower | ( | parent = xsi.ActiveSceneRoot , |
|
name = "flower" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a FLOWER shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.foil | ( | parent = xsi.ActiveSceneRoot , |
|
name = "foil" , |
|||
width = 1 , |
|||
length = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a FOIL shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
length | Double - Length of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.getPointArrayWithOffset | ( | point_pos, | |
pos_offset, | |||
rot_offset | |||
) |
MISC.
======================================================== Convert a list of vector to a List of Double and add the position and rotation offset.
point_pos | List of SIVector3 - The point position. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.glasses | ( | parent = xsi.ActiveSceneRoot , |
|
name = "glasses" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with GLASSES shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.leash | ( | parent = xsi.ActiveSceneRoot , |
|
name = "leash" , |
|||
width = 1 , |
|||
attachedPos = XSIMath.CreateVector3() , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a LEASH shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
attachedPos | SIVector3 - Position of the end of the leash. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.lookat | ( | parent = xsi.ActiveSceneRoot , |
|
name = "lookat" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a LOOKAT shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.man | ( | parent = xsi.ActiveSceneRoot , |
|
name = "man" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a MAN shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.null | ( | parent = xsi.ActiveSceneRoot , |
|
name = "null" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a NULL shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.pointer | ( | parent = xsi.ActiveSceneRoot , |
|
name = "pointer" , |
|||
width = 1 , |
|||
depth = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a POINTER shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
depth | Double - Depth of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.primOrIcon | ( | prim, | |
parent, | |||
name, | |||
t, | |||
color, | |||
icon, | |||
kwargs | |||
) |
DRAW METHODS.
Create a icon or a primitive form primitive definition
prim | PrimitiveDefinition - None to skip |
parent | X3DObject - Parent of the newly created object |
name | String - Name of the newly created object |
t | SITransformation - Transformation of the newly created object |
color | List of Float - Color of the newly created object in RGB |
icon | String - Icon type in case prim is not define |
kwargs | - Argument to create the icon |
def gear.xsi.icon.pyramid | ( | parent = xsi.ActiveSceneRoot , |
|
name = "pyramid" , |
|||
width = 1 , |
|||
height = 1 , |
|||
depth = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a PYRAMIDE shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
height | Double - Height of the shape. |
depth | Double - Depth of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.rectanglecube | ( | parent = xsi.ActiveSceneRoot , |
|
name = "rectangleCube" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a RECTANGLE CUBE shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.sphere | ( | parent = xsi.ActiveSceneRoot , |
|
name = "sphere" , |
|||
width = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a SPHERE shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |
def gear.xsi.icon.square | ( | parent = xsi.ActiveSceneRoot , |
|
name = "square" , |
|||
width = 1 , |
|||
depth = 1 , |
|||
color = [0 , |
|||
t = XSIMath.CreateTransform() , |
|||
pos_offset = XSIMath.CreateVector3() , |
|||
rot_offset = XSIMath.CreateRotation() |
|||
) |
Create a curve with a SQUARE shape.
parent | X3DObject - The parent object of the newly created curve. |
name | String - Name of the curve. |
width | Double - Width of the shape. |
depth | Double - Depth of the shape. |
color | List of Double - RGB color of the curve. |
t | SITransform - The global transformation of the curve. |
pos_offset | SIVector3 - The position offset of the curve from its center. |
rot_offset | SIRotation - The rotation offset of the curve from its center. |