1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0022492: Scaled sphere (Solid with BSplineSurface) is wrongly exported in STEP.

This commit is contained in:
SSV
2011-09-20 11:44:50 +00:00
committed by bugmaster
parent 9a0a1cb892
commit 1c72dff612
35 changed files with 311 additions and 272 deletions

View File

@@ -90,9 +90,10 @@ is
---Level: Public
returns MakeFace from BRepBuilderAPI;
Create(S : Surface from Geom)
---Purpose: Make a face from a Surface.
---Level: Public
Create(S : Surface from Geom; TolDegen : Real)
---Purpose: Make a face from a Surface. Accepts tolerance value (TolDegen)
-- for resolution of degenerated edges.
---Level: Public
returns MakeFace from BRepBuilderAPI;
----------------------------------------------
@@ -124,9 +125,10 @@ is
---Level: Public
returns MakeFace from BRepBuilderAPI;
Create(S : Surface from Geom; UMin, UMax, VMin, VMax : Real)
---Purpose: Make a face from a Surface.
---Level: Public
Create(S : Surface from Geom; UMin, UMax, VMin, VMax, TolDegen : Real)
---Purpose: Make a face from a Surface. Accepts tolerance value (TolDegen)
-- for resolution of degenerated edges.
---Level: Public
returns MakeFace from BRepBuilderAPI;
----------------------------------------------
@@ -243,26 +245,29 @@ is
-- want to work on the geometries of the two faces independently.
is static;
Init(me : in out; S : Surface from Geom; Bound : Boolean = Standard_True)
---Purpose: Initializes (or reinitializes) the construction of a face on
-- the surface S. If Bound is true (the default value), a wire is
-- automatically created from the natural bounds of the
-- surface S and added to the face in order to bound it. If
-- Bound is false, no wire is added. This option is used
-- when real bounds are known. These will be added to
-- the face after this initialization, using the function Add.
is static;
Init(me : in out; S : Surface from Geom; Bound : Boolean; TolDegen : Real)
---Purpose: Initializes (or reinitializes) the construction of a face on
-- the surface S. If Bound is true, a wire is
-- automatically created from the natural bounds of the
-- surface S and added to the face in order to bound it. If
-- Bound is false, no wire is added. This option is used
-- when real bounds are known. These will be added to
-- the face after this initialization, using the function Add.
-- TolDegen parameter is used for resolution of degenerated edges
-- if calculation of natural bounds is turned on.
is static;
Init(me : in out; S : Surface from Geom; UMin, UMax, VMin, VMax : Real)
---Purpose: Initializes (or reinitializes) the construction of a face on
-- the surface S, limited in the u parametric direction by
-- the two parameter values UMin and UMax and in the
-- v parametric direction by the two parameter values VMin and VMax.
-- Warning
-- Error returns:
-- - BRepBuilderAPI_ParametersOutOfRange
-- when the parameters given are outside the bounds of the
-- surface or the basis surface of a trimmed surface.
Init(me : in out; S : Surface from Geom; UMin, UMax, VMin, VMax, TolDegen : Real)
---Purpose: Initializes (or reinitializes) the construction of a face on
-- the surface S, limited in the u parametric direction by
-- the two parameter values UMin and UMax and in the
-- v parametric direction by the two parameter values VMin and VMax.
-- Warning
-- Error returns:
-- - BRepBuilderAPI_ParametersOutOfRange
-- when the parameters given are outside the bounds of the
-- surface or the basis surface of a trimmed surface.
-- TolDegen parameter is used for resolution of degenerated edges.
is static;
Add(me : in out; W : Wire from TopoDS)

View File

@@ -112,8 +112,9 @@ BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Torus& T)
//purpose :
//=======================================================================
BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const Handle(Geom_Surface)& S)
: myMakeFace(S)
BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const Handle(Geom_Surface)& S,
const Standard_Real TolDegen)
: myMakeFace(S, TolDegen)
{
if ( myMakeFace.IsDone()) {
Done();
@@ -222,12 +223,13 @@ BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Torus& T,
//purpose :
//=======================================================================
BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const Handle(Geom_Surface)& S,
const Standard_Real UMin,
const Standard_Real UMax,
const Standard_Real VMin,
const Standard_Real VMax)
: myMakeFace(S,UMin,UMax,VMin,VMax)
BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace (const Handle(Geom_Surface)& S,
const Standard_Real UMin,
const Standard_Real UMax,
const Standard_Real VMin,
const Standard_Real VMax,
const Standard_Real TolDegen)
: myMakeFace (S, UMin, UMax, VMin, VMax, TolDegen)
{
if ( myMakeFace.IsDone()) {
Done();
@@ -389,9 +391,10 @@ void BRepBuilderAPI_MakeFace::Init(const TopoDS_Face& F)
//=======================================================================
void BRepBuilderAPI_MakeFace::Init(const Handle(Geom_Surface)& S,
const Standard_Boolean Bound)
const Standard_Boolean Bound,
const Standard_Real TolDegen)
{
myMakeFace.Init(S,Bound);
myMakeFace.Init(S, Bound, TolDegen);
if ( myMakeFace.IsDone()) {
Done();
myShape = myMakeFace.Shape();
@@ -404,13 +407,14 @@ void BRepBuilderAPI_MakeFace::Init(const Handle(Geom_Surface)& S,
//purpose :
//=======================================================================
void BRepBuilderAPI_MakeFace::Init(const Handle(Geom_Surface)& SS,
const Standard_Real Um,
const Standard_Real UM,
const Standard_Real Vm,
const Standard_Real VM)
void BRepBuilderAPI_MakeFace::Init (const Handle(Geom_Surface)& SS,
const Standard_Real Um,
const Standard_Real UM,
const Standard_Real Vm,
const Standard_Real VM,
const Standard_Real TolDegen)
{
myMakeFace.Init(SS,Um,UM,Vm,VM);
myMakeFace.Init (SS, Um, UM, Vm, VM, TolDegen);
if ( myMakeFace.IsDone()) {
Done();
myShape = myMakeFace.Shape();