// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Intf_SectionPoint_HeaderFile #define _Intf_SectionPoint_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _gp_Pnt_HeaderFile #include #endif #ifndef _Intf_PIType_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class gp_Pnt; class gp_Pnt2d; //! Describes an intersection point between polygons and
//! polyedra.
class Intf_SectionPoint { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Returns the location of the SectionPoint.
Standard_EXPORT const gp_Pnt& Pnt() const; //! Returns the cumulated Parameter of the SectionPoint on the
//! first element.
//!
Standard_Real ParamOnFirst() const; //! Returns the cumulated Parameter of the section point on the
//! second element.
//!
Standard_Real ParamOnSecond() const; //! Returns the type of the section point on the first element.
//!
Intf_PIType TypeOnFirst() const; //! Returns the type of the section point on the second
//! element.
//!
Intf_PIType TypeOnSecond() const; Standard_EXPORT void InfoFirst(Intf_PIType& Dim,Standard_Integer& Add1,Standard_Integer& Add2,Standard_Real& Param) const; //! Gives the datas about the first argument of the
//! Interference.
Standard_EXPORT void InfoFirst(Intf_PIType& Dim,Standard_Integer& Addr,Standard_Real& Param) const; Standard_EXPORT void InfoSecond(Intf_PIType& Dim,Standard_Integer& Add1,Standard_Integer& Add2,Standard_Real& Param) const; //! Gives the datas about the second argument of the
//! Interference.
Standard_EXPORT void InfoSecond(Intf_PIType& Dim,Standard_Integer& Addr,Standard_Real& Param) const; //! Gives the incidence at this section point. The incidence
//! between the two triangles is given by the cosine. The best
//! incidence is 0. (PI/2). The worst is 1. (null angle).
Standard_EXPORT Standard_Real Incidence() const; //! Returns True if the two SectionPoint have the same logical
//! informations.
//!
Standard_Boolean IsEqual(const Intf_SectionPoint& Other) const; Standard_Boolean operator==(const Intf_SectionPoint& Other) const { return IsEqual(Other); } //! Returns True if the two SectionPoints are on the same edge
//! of the first or the second element.
Standard_EXPORT Standard_Boolean IsOnSameEdge(const Intf_SectionPoint& Other) const; Standard_EXPORT Intf_SectionPoint(); //! Builds a SectionPoint with the respective dimensions
//! (vertex edge or face) of the concerned arguments and their
//! addresses in the Topological structure.
Standard_EXPORT Intf_SectionPoint(const gp_Pnt& Where,const Intf_PIType DimeO,const Standard_Integer AddrO1,const Standard_Integer AddrO2,const Standard_Real ParamO,const Intf_PIType DimeT,const Standard_Integer AddrT1,const Standard_Integer AddrT2,const Standard_Real ParamT,const Standard_Real Incid); //! Builds a SectionPoint 2d with the respective dimensions
//! (vertex or edge) of the concerned arguments and their
//! addresses in the Topological structure.
Standard_EXPORT Intf_SectionPoint(const gp_Pnt2d& Where,const Intf_PIType DimeO,const Standard_Integer AddrO1,const Standard_Real ParamO,const Intf_PIType DimeT,const Standard_Integer AddrT1,const Standard_Real ParamT,const Standard_Real Incid); //! Merges two SectionPoints.
Standard_EXPORT void Merge(Intf_SectionPoint& Other) ; Standard_EXPORT void Dump(const Standard_Integer Indent) const; protected: private: gp_Pnt myPnt; Intf_PIType DimenObje; Standard_Integer IndexO1; Standard_Integer IndexO2; Standard_Real ParamObje; Intf_PIType DimenTool; Standard_Integer IndexT1; Standard_Integer IndexT2; Standard_Real ParamTool; Standard_Real Incide; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif