1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
7
TwinPointer="BoundBox3d"
8
Include="Base/BoundBox.h"
9
FatherInclude="Base/PyObjectBase.h"
13
FatherNamespace="Base">
15
<Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
16
<DeveloperDocu>This is the BoundBox export class</DeveloperDocu>
17
<UserDocu>Bound box class
18
A bounding box is an orthographic cube which is a way to describe outer boundaries.
19
You get a bounding box from a lot of 3D types. It is often used to check if a 3D
20
entity lies in the range of another object. Checking for boundig interference first
21
can save a lot of computing time!
24
App.BoundBox([Xmin,Ymin,Zmin,Xmax,Ymax,Zmax])
25
App.BoundBox(Tuple, Tuple)
26
App.BoundBox(Vector, Vector)
27
App.BoundBox(BoundBox)
32
<UserDocu>method add(BoundBox)
33
Add (enlarge) the given BoundBox</UserDocu>
36
<Methode Name="isIntersection">
38
<UserDocu>method isIntersection(Vector|BoundBox|Vector Base, Vector Dir)
39
Checks if the given object intersects with the BoundBox. That can be:
42
- A line, specified by Base and Dir
46
<Methode Name="enlarge">
48
<UserDocu>method enlarge(Float)
49
Enlarge the BoundBox by the given value in each direction.
50
A negative value shrinks the box.</UserDocu>
54
<Methode Name="getIntersectionPoint">
56
<UserDocu>method Vector getIntersectionPoint(Vector Base, Vector Dir)
57
Calculate the intersection point of a line with the BoundBox
63
<UserDocu> method getIntersectionPoint(Vector)
64
Move the BoundBox by the given vector
68
<Methode Name="isCutPlane">
70
<UserDocu>method bool isCutPlane(Vector Base, Vector Normal)
71
Check if the plane specified by Base and Normal intersects (cuts) the BoundBox</UserDocu>
74
<Attribute Name="Center" ReadOnly="true">
76
<UserDocu>Center point of the bounding box</UserDocu>
78
<Parameter Name="Center" Type="Object" />
80
<Attribute Name="XMax" ReadOnly="false">
82
<UserDocu>The maximum x boundary position</UserDocu>
84
<Parameter Name="XMax" Type="Float" />
86
<Attribute Name="YMax" ReadOnly="false">
88
<UserDocu>The maximum y boundary position</UserDocu>
90
<Parameter Name="YMax" Type="Float" />
92
<Attribute Name="ZMax" ReadOnly="false">
94
<UserDocu>The maximum z boundary position</UserDocu>
96
<Parameter Name="ZMax" Type="Float" />
98
<Attribute Name="XMin" ReadOnly="false">
100
<UserDocu>The minimum x boundary position</UserDocu>
102
<Parameter Name="XMin" Type="Float" />
104
<Attribute Name="YMin" ReadOnly="false">
106
<UserDocu>The minimum y boundary position</UserDocu>
108
<Parameter Name="YMin" Type="Float" />
110
<Attribute Name="ZMin" ReadOnly="false">
112
<UserDocu>The minimum z boundary position</UserDocu>
114
<Parameter Name="ZMin" Type="Float" />
116
<Attribute Name="XLength" ReadOnly="true">
118
<UserDocu>Length of the BoundBox in x direction</UserDocu>
120
<Parameter Name="XLength" Type="Float" />
122
<Attribute Name="YLength" ReadOnly="true">
124
<UserDocu>Length of the BoundBox in y direction</UserDocu>
126
<Parameter Name="YLength" Type="Float" />
128
<Attribute Name="ZLength" ReadOnly="true">
130
<UserDocu>Length of the BoundBox in z direction</UserDocu>
132
<Parameter Name="ZLength" Type="Float" />
134
<Attribute Name="DiagonalLength" ReadOnly="true">
136
<UserDocu>Diagonal length of the BoundBox</UserDocu>
138
<Parameter Name="DiagonalLength" Type="Float" />