1 """
2 Boolean geometry group of solids.
3
4 """
5
6 from fabmetheus_utilities.geometry.geometry_tools import dictionary
7 from fabmetheus_utilities.geometry.geometry_utilities import evaluate
8 from fabmetheus_utilities.geometry.geometry_utilities import matrix
9 from fabmetheus_utilities import euclidean
10
11
12 __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
13 __credits__ = 'Art of Illusion <http://www.artofillusion.org/>'
14 __date__ = '$Date: 2008/02/05 $'
15 __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
16
17
21
27
31
32
33 -class Group(dictionary.Dictionary):
34 "A group."
39
41 "Add xml inner section for this object."
42 if self.matrix4X4 != None:
43 self.matrix4X4.addXML(depth, output)
44 self.addXMLSection(depth, output)
45
47 "Add the xml section for this object."
48 pass
49
51 "Get loops sliced through shape."
52 visibleObjects = evaluate.getVisibleObjects(self.archivableObjects)
53 loops = []
54 for visibleObject in visibleObjects:
55 loops += visibleObject.getLoops(importRadius, z)
56 return loops
57
59 "Get the matrix4X4."
60 return self.matrix4X4
61
65
69
75