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

Functions

def getSymSubComponent
 SUBCOMPONENT. More...
 
def mirrorCluster
 Create a symmetrical cluster. More...
 
def isFrozen
 CONSTRUCTION HISTORY. More...
 
def getOperatorFromStack
 Return an operator of given type from the deformer stack of given geometry. More...
 
def getStars
 POLYMESH. More...
 
def mergeWithClusters
 Merge geometries and keep the clusters. More...
 
def splitPolygonIsland
 Split a geometry into sub island component. More...
 
def createIslandsClusters
 Create an cluster of type clsType for each island. More...
 
def getIslands
 Return a list of subcomponent indexes. More...
 
def addClusterCenter
 Create a null for each given point of the geometry and apply a ClusterCenter op. More...
 

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.geometry.addClusterCenter (   obj,
  pnt_index = [] 
)

Create a null for each given point of the geometry and apply a ClusterCenter op.

Parameters
objGeometry
pnt_indexList of Integer - The indexes of the points (None to work on all the points)
Returns
List of Null - The newly created centers
def gear.xsi.geometry.createIslandsClusters (   obj,
  clsType = c.siPolygonCluster 
)

Create an cluster of type clsType for each island.

Parameters
objPolymesh
Returns
List of Clusters
def gear.xsi.geometry.getIslands (   obj,
  clsType = c.siPolygonCluster 
)

Return a list of subcomponent indexes.

Parameters
objPolymesh
Returns
List of List of Integer
def gear.xsi.geometry.getOperatorFromStack (   obj,
  opType,
  firstOnly = True 
)

Return an operator of given type from the deformer stack of given geometry.

Parameters
objGeometry - The geometry to check.
opTypeString - The type of the operator to find.
firstOnlyBoolean - Only return first matching operator.
Returns
An operator if firstOnly is true, a collection of operator if it's false, False if there is no such operator.
def gear.xsi.geometry.getStars (   obj,
  count,
  equalOrSuperior = False 
)

POLYMESH.

======================================================== Return the indexes of point with a certian number of edges connected to them

Parameters
objGeometry
countInteger - Number of edges we are looking for
equalOrSuperior- True to also return point with more than the given count
Returns
List of Integer
def gear.xsi.geometry.getSymSubComponent (   indexes,
  subcomponentType,
  mesh 
)

SUBCOMPONENT.

getSymSubComponent ===================================== get the symmetrical suncomponent indices.

Parameters
indexesList of Integer - List of subcomponent index to mirror.
subcomponentTypeString - Type of subcomponent. (pntSubComponent, polySubComponent or edgeSubComponent)
meshGeometry - The owner mesh.
Returns
List of Integer - The list of symmetrical indices.
def gear.xsi.geometry.isFrozen (   obj)

CONSTRUCTION HISTORY.

======================================================== Return True if given geometry has an empty stack of deformers

Parameters
Geometry
Returns
Boolean
def gear.xsi.geometry.mergeWithClusters (   objects)

Merge geometries and keep the clusters.

Parameters
objectsList of Polymesh
Returns
Operator - The merge operator
def gear.xsi.geometry.mirrorCluster (   cls)

Create a symmetrical cluster.

Parameters
clsCluster
Returns
Cluster
def gear.xsi.geometry.splitPolygonIsland (   obj)

Split a geometry into sub island component.

Parameters
objPolymesh
Returns
List of Polymesh