Blender Git Commit Log

Git Commits -> Revision 96e7917

Revision 96e7917 by Tamito Kajiyama (master)
May 23, 2010, 17:11 (GMT)
Made object names accessible from within style modules.
ViewShape objects in the view map, as well as SShape objects
that can be retrieved with ViewShape::sshape(), now have a
getName() method that returns the name of the object from
which each shape is created. For instance, visible feature
edges of specific mesh objects (e.g., Cube.001 and Cube.002)
can be selected using custom predicate ObjectNamesUP1D as
follows:

class ObjectNamesUP1D(UnaryPredicate1D):
def __init__(self, names):
UnaryPredicate1D.__init__(self)
self._names = names
def getName(self):
return "ObjectNamesUP1D"
def __call__(self, viewEdge):
return viewEdge.viewShape().getName() in self._names

upred = AndUP1D(QuantitativeInvisibilityUP1D(0),
ObjectNamesUP1D(["Cube.001", "Cube.002"]))
Operators.select(upred)

Commit Details:

Full Hash: 96e79172a010cba6bc826f570832ef4b355ea0cd
SVN Revision: 28936
Parent Commit: 2212564
Lines Changed: +75, -8

10 Modified Paths:

/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp (+1, -0) (Diff)
/source/blender/freestyle/intern/python/BPy_SShape.cpp (+33, -0) (Diff)
/source/blender/freestyle/intern/python/BPy_ViewShape.cpp (+13, -0) (Diff)
/source/blender/freestyle/intern/scene_graph/Rep.h (+6, -0) (Diff)
/source/blender/freestyle/intern/view_map/Silhouette.h (+6, -0) (Diff)
/source/blender/freestyle/intern/view_map/ViewMap.h (+2, -0) (Diff)
/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp (+1, -0) (Diff)
/source/blender/freestyle/intern/winged_edge/WEdge.cpp (+1, -0) (Diff)
/source/blender/freestyle/intern/winged_edge/WEdge.h (+11, -8) (Diff)
/source/blender/freestyle/intern/winged_edge/WXEdgeBuilder.cpp (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021