Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:55

0001 // Created on: 1998-07-14
0002 // Created by: data exchange team
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _ShapeConstruct_HeaderFile
0018 #define _ShapeConstruct_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <GeomAbs_Shape.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <TopTools_HSequenceOfShape.hxx>
0027 #include <TopAbs_Orientation.hxx>
0028 class Geom_BSplineCurve;
0029 class Geom_Curve;
0030 class Geom2d_BSplineCurve;
0031 class Geom2d_Curve;
0032 class Geom_BSplineSurface;
0033 class Geom_Surface;
0034 class TopoDS_Face;
0035 class TopoDS_Edge;
0036 
0037 
0038 //! This package provides new algorithms for constructing
0039 //! new geometrical objects and topological shapes. It
0040 //! complements and extends algorithms available in Open
0041 //! CASCADE topological and geometrical toolkist.
0042 //! The functionality provided by this package are the
0043 //! following:
0044 //! projecting curves on surface,
0045 //! adjusting curve to have given start and end points. P
0046 class ShapeConstruct 
0047 {
0048 public:
0049 
0050   DEFINE_STANDARD_ALLOC
0051 
0052   
0053   //! Tool for wire triangulation
0054   Standard_EXPORT static Handle(Geom_BSplineCurve) ConvertCurveToBSpline (const Handle(Geom_Curve)& C3D, const Standard_Real First, const Standard_Real Last, const Standard_Real Tol3d, const GeomAbs_Shape Continuity, const Standard_Integer MaxSegments, const Standard_Integer MaxDegree);
0055   
0056   Standard_EXPORT static Handle(Geom2d_BSplineCurve) ConvertCurveToBSpline (const Handle(Geom2d_Curve)& C2D, const Standard_Real First, const Standard_Real Last, const Standard_Real Tol2d, const GeomAbs_Shape Continuity, const Standard_Integer MaxSegments, const Standard_Integer MaxDegree);
0057   
0058   Standard_EXPORT static Handle(Geom_BSplineSurface) ConvertSurfaceToBSpline (const Handle(Geom_Surface)& surf, const Standard_Real UF, const Standard_Real UL, const Standard_Real VF, const Standard_Real VL, const Standard_Real Tol3d, const GeomAbs_Shape Continuity, const Standard_Integer MaxSegments, const Standard_Integer MaxDegree);
0059   
0060   //! join pcurves of the <theEdge> on the <theFace>
0061   //! try to use pcurves from originas edges <theEdges>
0062   //! Returns false if cannot join pcurves
0063   Standard_EXPORT static Standard_Boolean JoinPCurves (const Handle(TopTools_HSequenceOfShape)& theEdges, const TopoDS_Face& theFace, TopoDS_Edge& theEdge);
0064   
0065   //! Method for joininig curves 3D.
0066   //! Parameters : c3d1,ac3d2 - initial curves
0067   //! Orient1, Orient2 - initial edges orientations.
0068   //! first1,last1,first2,last2 - parameters for trimming curves
0069   //! (re-calculate with account of orientation edges)
0070   //! c3dOut - result curve
0071   //! isRev1,isRev2 - out parameters indicative on possible errors.
0072   //! Return value : True - if curves were joined successfully,
0073   //! else - False.
0074   Standard_EXPORT static Standard_Boolean JoinCurves (const Handle(Geom_Curve)& c3d1, const Handle(Geom_Curve)& ac3d2, const TopAbs_Orientation Orient1, const TopAbs_Orientation Orient2, Standard_Real& first1, Standard_Real& last1, Standard_Real& first2, Standard_Real& last2, Handle(Geom_Curve)& c3dOut, Standard_Boolean& isRev1, Standard_Boolean& isRev2);
0075   
0076   //! Method for joininig curves 3D.
0077   //! Parameters : c3d1,ac3d2 - initial curves
0078   //! Orient1, Orient2 - initial edges orientations.
0079   //! first1,last1,first2,last2 - parameters for trimming curves
0080   //! (re-calculate with account of orientation edges)
0081   //! c3dOut - result curve
0082   //! isRev1,isRev2 - out parameters indicative on possible errors.
0083   //! isError - input parameter indicative possible errors due to that one from edges have one vertex
0084   //! Return value : True - if curves were joined successfully,
0085   //! else - False.
0086   Standard_EXPORT static Standard_Boolean JoinCurves (const Handle(Geom2d_Curve)& c2d1, const Handle(Geom2d_Curve)& ac2d2, const TopAbs_Orientation Orient1, const TopAbs_Orientation Orient2, Standard_Real& first1, Standard_Real& last1, Standard_Real& first2, Standard_Real& last2, Handle(Geom2d_Curve)& c2dOut, Standard_Boolean& isRev1, Standard_Boolean& isRev2, const Standard_Boolean isError = Standard_False);
0087 
0088 };
0089 
0090 #endif // _ShapeConstruct_HeaderFile