gear_mc
 All Classes Namespaces Functions Variables
Functions
gear.xsi.io Namespace Reference

Functions

def importSkin
 IMPORT. More...
 
def importEnvelope
 Import an envelope from xml definition on given object. More...
 
def exportSkin
 EXPORT. More...
 
def exportEnvelope
 Export to xml the envelope of an object. More...
 
def getObjectItems
 MISC. More...
 
def getObjectDefinitions
 

Detailed Description

    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
Author
Jeremie Passerin

Function Documentation

def gear.xsi.io.exportEnvelope (   path,
  objects,
  compression = False 
)

Export to xml the envelope of an object.

Parameters
pathString - Path to a file to save the xml file.
objectsCollection or List of X3DObjects - objects to export.
compressionBoolean - True to activate compression of the datas inside the xml file.
def gear.xsi.io.exportSkin (   path,
  objects,
  compression = False 
)

EXPORT.

======================================================== Export to xml the skin of an object. The skin is all the stack of deformers applied on a geometry.
Only envelope are supported right now.

Parameters
pathString - Path to a file to save the xml file.
objectsCollection or List of X3DObjects - objects to export.
compressionBoolean - True to activate compression of the datas inside the xml file.
def gear.xsi.io.getObjectItems (   path)

MISC.

======================================================== Return

def gear.xsi.io.importEnvelope (   xml_obj,
  obj,
  pnt_selection = None 
)

Import an envelope from xml definition on given object.

Parameters
xml_objXmlElement - Xml definition of the object
objX3DObject - Object to apply the deformers to
pnt_selectionList of Integer - Indexes of the point to apply the envelope to
Returns
Operator - The newly created envelope operator
def gear.xsi.io.importSkin (   xml_obj,
  obj 
)

IMPORT.

======================================================== Import a skin (xml definition of deformers) on given object

Parameters
xml_objXmlElement - Xml definition of the object
objX3DObject - Object to apply the deformers to