mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-29 03:50:33 +05:00
Mantis issue 0021682: EDF 2224 : T-shape fails with specific values
This commit is contained in:
parent
1005fe15f3
commit
a33055ee5b
@ -56,8 +56,10 @@
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Vec.hxx>
|
||||
#include <gp_Ax3.hxx>
|
||||
|
||||
#include <BRepBuilderAPI_Transform.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include <TFunction_DriverTable.hxx>
|
||||
@ -996,7 +998,10 @@ bool GEOMImpl_IAdvancedOperations::MakePipeTShapePartition(Handle(GEOM_Object) t
|
||||
//wire_t2->GetLastFunction()->SetDescription("");
|
||||
// std::cerr << "Creating face 2" << std::endl;
|
||||
//face_t2 = myShapesOperations->MakeFace(wire_t2, false);
|
||||
face_t2 = my3DPrimOperations->MakePrismVecH(edge_chan_inc, Cote_4, - 2.0*theR2);
|
||||
|
||||
// Mantis issue 0021682
|
||||
face_t2 = my3DPrimOperations->MakePrismVecH(edge_chan_inc, Cote_4, - (theR2 + theW2));
|
||||
//face_t2 = my3DPrimOperations->MakePrismVecH(edge_chan_inc, Cote_4, - 2.0*theR2);
|
||||
if (face_t2.IsNull()) {
|
||||
SetErrorCode("Impossible to build face");
|
||||
return false;
|
||||
@ -1025,9 +1030,10 @@ bool GEOMImpl_IAdvancedOperations::MakePipeTShapePartition(Handle(GEOM_Object) t
|
||||
Handle(TColStd_HSequenceOfTransient) theKeepInside = new TColStd_HSequenceOfTransient;
|
||||
Handle(TColStd_HSequenceOfTransient) theRemoveInside = new TColStd_HSequenceOfTransient;
|
||||
Handle(TColStd_HArray1OfInteger) theMaterials;
|
||||
|
||||
partitionShapes->Append(theShape);
|
||||
theTools->Append(aPlnOZ);
|
||||
if (Abs(aR1Ext - aR2Ext) > Precision::Confusion() )
|
||||
if (Abs(aR1Ext - aR2Ext) > Precision::Confusion())
|
||||
theTools->Append(aPlnOXZ);
|
||||
theTools->Append(face_t);
|
||||
if (!isNormal)
|
||||
|
Loading…
Reference in New Issue
Block a user