Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
GC_MakePlane Class Reference

Implements construction algorithms for planes in 3D space. Supported constructions include: More...

#include <GC_MakePlane.hxx>

Inheritance diagram for GC_MakePlane:
Inheritance graph
[legend]

Public Member Functions

 GC_MakePlane (const gp_Pln &thePl)
 Creates a plane from a non-persistent plane from package gp.
 
 GC_MakePlane (const gp_Pnt &theP, const gp_Dir &theV)
 Creates a plane from point and normal direction.
 
 GC_MakePlane (const double theA, const double theB, const double theC, const double theD)
 Creates a plane from its cartesian equation: A * x + B * y + C * z + D = 0.0.
 
 GC_MakePlane (const gp_Pln &thePln, const gp_Pnt &thePoint)
 Creates a plane parallel to the input plane and passing through the input point.
 
 GC_MakePlane (const gp_Pln &thePln, const double theDist)
 Creates a plane parallel to the input plane at signed distance.
 
 GC_MakePlane (const gp_Pnt &theP1, const gp_Pnt &theP2, const gp_Pnt &theP3)
 Creates a plane passing through three points.
 
 GC_MakePlane (const gp_Ax1 &theAxis)
 Creates a plane through axis location and normal to axis direction.
 
const occ::handle< Geom_Plane > & Value () const
 Returns the constructed plane. Exceptions StdFail_NotDone if no plane is constructed.
 
 operator const occ::handle< Geom_Plane > & () const
 Conversion operator returning the constructed object.
 
- Public Member Functions inherited from GC_Root
bool IsDone () const
 Returns true if the construction is successful.
 
bool IsError () const
 Returns true if the construction has failed.
 
gce_ErrorType Status () const
 Returns the status of the construction:
 

Additional Inherited Members

- Protected Attributes inherited from GC_Root
gce_ErrorType TheError
 

Detailed Description

Implements construction algorithms for planes in 3D space. Supported constructions include:

Constructor & Destructor Documentation

◆ GC_MakePlane() [1/7]

GC_MakePlane::GC_MakePlane ( const gp_Pln & thePl)

Creates a plane from a non-persistent plane from package gp.

Parameters
[in]thePlsource plane

◆ GC_MakePlane() [2/7]

GC_MakePlane::GC_MakePlane ( const gp_Pnt & theP,
const gp_Dir & theV )

Creates a plane from point and normal direction.

Parameters
[in]thePlocation point of the plane
[in]theVnormal direction

◆ GC_MakePlane() [3/7]

GC_MakePlane::GC_MakePlane ( const double theA,
const double theB,
const double theC,
const double theD )

Creates a plane from its cartesian equation: A * x + B * y + C * z + D = 0.0.

Parameters
[in]theAequation coefficient A
[in]theBequation coefficient B
[in]theCequation coefficient C
[in]theDequation coefficient D
Note
Status is gce_BadEquation if sqrt(theA*theA + theB*theB + theC*theC) is below gp resolution.

◆ GC_MakePlane() [4/7]

GC_MakePlane::GC_MakePlane ( const gp_Pln & thePln,
const gp_Pnt & thePoint )

Creates a plane parallel to the input plane and passing through the input point.

Parameters
[in]thePlnsource plane
[in]thePointpoint on resulting plane

◆ GC_MakePlane() [5/7]

GC_MakePlane::GC_MakePlane ( const gp_Pln & thePln,
const double theDist )

Creates a plane parallel to the input plane at signed distance.

Parameters
[in]thePlnsource plane
[in]theDistsigned distance
Note
Positive distance follows the normal of the input plane.

◆ GC_MakePlane() [6/7]

GC_MakePlane::GC_MakePlane ( const gp_Pnt & theP1,
const gp_Pnt & theP2,
const gp_Pnt & theP3 )

Creates a plane passing through three points.

Parameters
[in]theP1first point
[in]theP2second point
[in]theP3third point
Note
Construction fails when points are confused/collinear.

◆ GC_MakePlane() [7/7]

GC_MakePlane::GC_MakePlane ( const gp_Ax1 & theAxis)

Creates a plane through axis location and normal to axis direction.

Parameters
[in]theAxisaxis defining location and normal

Member Function Documentation

◆ operator const occ::handle< Geom_Plane > &()

GC_MakePlane::operator const occ::handle< Geom_Plane > & ( ) const
inline

Conversion operator returning the constructed object.

Returns
resulting object

◆ Value()

const occ::handle< Geom_Plane > & GC_MakePlane::Value ( ) const

Returns the constructed plane. Exceptions StdFail_NotDone if no plane is constructed.

Returns
resulting plane

The documentation for this class was generated from the following file: