1SbPlane(3IV)() SbPlane(3IV)()
2
3
4
6 SbPlane — oriented plane in 3D
7
9 SbPlane
10
12 #include <Inventor/SbLinear.h>
13
14 Methods from class SbPlane:
15
16 SbPlane()
17 SbPlane(const SbVec3f &p0, const SbVec3f &p1, const
18 SbVec3f &p2)
19 SbPlane(const SbVec3f &normal, float distance)
20 SbPlane(const SbVec3f &normal, const SbVec3f &point)
21 void offset(float d)
22 SbBool intersect(const SbLine &l, SbVec3f &intersection)
23 const
24 void transform(const SbMatrix &matrix)
25 SbBool isInHalfSpace(const SbVec3f &point) const
26 const SbVec3f & getNormal() const
27 float getDistanceFromOrigin() const
28 int operator ==(const SbPlane &p1, const SbPlane &p2)
29 int operator !=(const SbPlane &p1, const SbPlane &p2)
30
31
33 Represents an oriented plane in 3D. This is a lightweight
34 class/datatype that is used for arguments to some Inventor objects.
35
37 SbPlane()
38 SbPlane(const SbVec3f &p0, const SbVec3f &p1, const
39 SbVec3f &p2)
40 SbPlane(const SbVec3f &normal, float distance)
41 SbPlane(const SbVec3f &normal, const SbVec3f &point)
42 Constructors. p0, p1, and p2 represent three points in the plane.
43 normal is a normal vector, distance is distance from origin to plane
44 along normal vector, and point is a point in 3-space for the plane
45 to pass through.
46
47 void offset(float d)
48 Offset a plane by a given distance.
49
50 SbBool intersect(const SbLine &l, SbVec3f &intersection)
51 const
52 Intersect line and plane, returning TRUE if there is an intersec‐
53 tion, FALSE if line is parallel to plane.
54
55 void transform(const SbMatrix &matrix)
56 Transforms the plane by the given matrix.
57
58 SbBool isInHalfSpace(const SbVec3f &point) const
59 Returns TRUE if the given point is within the half-space defined by
60 the plane.
61
62 const SbVec3f & getNormal() const
63 Returns normal vector to plane.
64
65 float getDistanceFromOrigin() const
66 Returns distance from origin to plane.
67
68 int operator ==(const SbPlane &p1, const SbPlane &p2)
69 int operator !=(const SbPlane &p1, const SbPlane &p2)
70 Equality/inequality comparison operators.
71
72
74 SbVec3f, SbLine
75
76
77
78
79 SbPlane(3IV)()