gear::xsi::utils Namespace Reference

Functions

def convertRLName
 Convert a string with _L_, _L0_, L_, _L to R.
def getSymmetryMap
 Get the symmetry map of an object.
def setColor
 Create a Display Property on the object and set the wirecolor.

Detailed Description


    This file is part of GEAR.

    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
    Company:    Studio Nest (TM)
    Date:       2010 / 11 / 15

Author:
Jeremie Passerin

Function Documentation

def gear::xsi::utils::convertRLName (   name  ) 

Convert a string with _L_, _L0_, L_, _L to R.

And vice and versa.

Parameters:
name String - string to convert
Returns:
Tuple of Integer - screen width and height.
def gear::xsi::utils::getSymmetryMap (   obj,
  logWarning = True 
)

Get the symmetry map of an object.

Parameters:
obj Geometry.
logWarning Boolean - Log a warning if there is no symmetry map on selection.
Returns:
Map - The object symmetry map. False if there is none.
def gear::xsi::utils::setColor (   obj,
  color = [0 
)

Create a Display Property on the object and set the wirecolor.

Parameters:
obj X3DObject - Object.
color List of Double - The RGB color of the object (ie. [1,0,0] for red).
Returns:
Property - The newly created display property.
Generated by  doxygen 1.6.2-20100208