Kernel SDK Developer's Guide > Working with the Ge Library > Working with Planes > Working with Bounded Planes
Working with Bounded Planes

Besides infinite planes, the Ge library supports bounded planes which are represented by the OdGeBoundedPlane class. Different from infinite planes, bounded planes parameters space is bounded by a region with sides of 1.0 so that u and v parameters values are from 0.0 to 1.0.

You can construct an OdGeBoundedPlane object using the following OdGeBoundedPlane() constructors:

  • OdGeBoundedPlane() — The default plane constructor. Creates an infinite plane parallel to the XY plane.
  • OdGeBoundedPlane(const OdGeBoundedPlane& plane) — Creates a bounded plane cloned from a specified OdGePlane object.
  • OdGeBoundedPlane(const OdGePoint3d& origin, const OdGeVector3d& uAxis, const OdGeVector3d& vAxis) — Creates a bounded plane from an origin and two vectors.
  • OdGeBoundedPlane(const OdGePoint3d& uPnt, const OdGePoint3d& origin, const OdGePoint3d& vPnt) — Creates a bounded plane from an origin and two points.

For example, to construct a bounded plane with the origin at p1 and two points at p2 and p3:

OdGeBoundedPlane bPlane1(p2, p1, p3);

Use the set() method to set the origin and two vectors or three points that define the plane:

bPlane1.set(OdGePoint3d(0,0,0), OdGeVector3d(1,0,0), OdGeVector3d(0,1,0));
bPlane1.set(OdGePoint3d(1,0,0), OdGePoint3d(0,0,0), OdGePoint3d(0,1,0));

Other functionality is similar to that of OdGePlane objects.

See Also

Working with Infinite Planes

Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.