|
||||
File indexing completed on 2025-01-18 10:03:57
0001 // Created on: 1994-09-01 0002 // Created by: Christian CAILLET 0003 // Copyright (c) 1994-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 _IGESConvGeom_HeaderFile 0018 #define _IGESConvGeom_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <Standard_Integer.hxx> 0025 #include <Standard_Real.hxx> 0026 class IGESGeom_SplineCurve; 0027 class Geom_BSplineCurve; 0028 class Geom2d_BSplineCurve; 0029 class IGESGeom_SplineSurface; 0030 class Geom_BSplineSurface; 0031 0032 0033 //! This package is intended to gather geometric conversion which 0034 //! are not immediate but can be used for several purposes : 0035 //! mainly, standard conversion to and from CasCade geometric and 0036 //! topologic data, and adaptations of IGES files as required 0037 //! (as replacing Spline entities to BSpline equivalents). 0038 class IGESConvGeom 0039 { 0040 public: 0041 0042 DEFINE_STANDARD_ALLOC 0043 0044 0045 //! basic tool to build curves from IGESGeom (arrays of points, 0046 //! Transformations, evaluation of points in a datum) 0047 //! Converts a SplineCurve from IGES to a BSplineCurve from CasCade 0048 //! <epscoef> gives tolerance to consider coefficient to be nul 0049 //! <epsgeom> gives tolerance to consider poles to be equal 0050 //! The returned value is a status with these possible values : 0051 //! - 0 OK, done 0052 //! - 1 the result is not guaranteed to be C0 (with <epsgeom>) 0053 //! - 2 SplineType not processed (allowed : max 3) 0054 //! (no result produced) 0055 //! - 3 error during creation of control points 0056 //! (no result produced) 0057 //! - 4 polynomial equation is not correct (no result produced) 0058 //! - 5 less than one segment (no result produced) 0059 Standard_EXPORT static Standard_Integer SplineCurveFromIGES (const Handle(IGESGeom_SplineCurve)& igesent, const Standard_Real epscoef, const Standard_Real epsgeom, Handle(Geom_BSplineCurve)& result); 0060 0061 //! Tries to increase curve continuity with tolerance <epsgeom> 0062 //! <continuity> is the new desired continuity, can be 1 or 2 0063 //! (more than 2 is considered as 2). 0064 //! Returns the new maximum continuity obtained on all knots. 0065 //! Remark that, for instance with <continuity> = 2, even if not 0066 //! all the knots can be passed to C2, all knots which can be are. 0067 Standard_EXPORT static Standard_Integer IncreaseCurveContinuity (const Handle(Geom_BSplineCurve)& curve, const Standard_Real epsgeom, const Standard_Integer continuity = 2); 0068 0069 Standard_EXPORT static Standard_Integer IncreaseCurveContinuity (const Handle(Geom2d_BSplineCurve)& curve, const Standard_Real epsgeom, const Standard_Integer continuity = 2); 0070 0071 //! Converts a SplineSurface from IGES to a BSplineSurface from CasCade 0072 //! <epscoef> gives tolerance to consider coefficient to be nul 0073 //! <epsgeom> gives tolerance to consider poles to be equal 0074 //! The returned value is a status with these possible values : 0075 //! - 0 OK, done 0076 //! - 1 the result is not guaranteed to be C0 (with <epsgeom>) 0077 //! - 2 degree is not compatible with code boundary type 0078 //! (warning) but C0 is OK 0079 //! - 3 idem but C0 is not guaranteed (warning) 0080 //! - 4 degree has been determined to be nul, either in U or V 0081 //! (no result produced) 0082 //! - 5 less than one segment in U or V (no result produced) 0083 Standard_EXPORT static Standard_Integer SplineSurfaceFromIGES (const Handle(IGESGeom_SplineSurface)& igesent, const Standard_Real epscoef, const Standard_Real epsgeom, Handle(Geom_BSplineSurface)& result); 0084 0085 //! Tries to increase Surface continuity with tolerance <epsgeom> 0086 //! <continuity> is the new desired continuity, can be 1 or 2 0087 //! (more than 2 is considered as 2). 0088 //! Returns the new maximum continuity obtained on all knots. 0089 //! Remark that, for instance with <continuity> = 2, even if not 0090 //! all the knots can be passed to C2, all knots which can be are. 0091 Standard_EXPORT static Standard_Integer IncreaseSurfaceContinuity (const Handle(Geom_BSplineSurface)& surface, const Standard_Real epsgeom, const Standard_Integer continuity = 2); 0092 0093 }; 0094 0095 #endif // _IGESConvGeom_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |