This commit is contained in:
jfa 2009-12-17 09:56:12 +00:00
parent d2046800b5
commit 5c917427de
2 changed files with 5 additions and 3 deletions

View File

@ -2126,7 +2126,7 @@ TCollection_AsciiString GEOMImpl_IBlocksOperations::PrintBCErrors
//============================================================================= //=============================================================================
Standard_Boolean GEOMImpl_IBlocksOperations::CheckCompoundOfBlocks Standard_Boolean GEOMImpl_IBlocksOperations::CheckCompoundOfBlocks
(Handle(GEOM_Object) theCompound, (Handle(GEOM_Object) theCompound,
std::list<BCError>& theErrors) std::list<BCError>& theErrors)
{ {
SetErrorCode(KO); SetErrorCode(KO);
@ -2222,7 +2222,7 @@ Standard_Boolean GEOMImpl_IBlocksOperations::CheckCompoundOfBlocks
} }
// 3. Find not glued blocks // 3. Find not glued blocks
GEOMAlgo_GlueAnalyser aGD; GEOMAlgo_GlueAnalyser aGD;
aGD.SetShape(aComp); aGD.SetShape(aComp);
aGD.SetTolerance(Precision::Confusion()); aGD.SetTolerance(Precision::Confusion());
@ -2385,6 +2385,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::CheckAndImprove
GEOMImpl_IBlockTrsf aTI (aFunction); GEOMImpl_IBlockTrsf aTI (aFunction);
aTI.SetOriginal(aLastFunction); aTI.SetOriginal(aLastFunction);
// -1 means do not unite faces on common surface (?except case of seam edge between them?)
//aTI.SetOptimumNbFaces(-1);
aTI.SetOptimumNbFaces(6); aTI.SetOptimumNbFaces(6);
//Compute the fixed shape //Compute the fixed shape

View File

@ -237,7 +237,6 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
TopTools_MapOfShape aMapEdges; TopTools_MapOfShape aMapEdges;
Handle(TopTools_HSequenceOfShape) aSeqEdgesIn = new TopTools_HSequenceOfShape; Handle(TopTools_HSequenceOfShape) aSeqEdgesIn = new TopTools_HSequenceOfShape;
BRep_Builder B;
for (ind = 1; ind <= nbshapes; ind++) { for (ind = 1; ind <= nbshapes; ind++) {
Handle(GEOM_Function) aRefSh_i = Handle(GEOM_Function)::DownCast(aShapes->Value(ind)); Handle(GEOM_Function) aRefSh_i = Handle(GEOM_Function)::DownCast(aShapes->Value(ind));
TopoDS_Shape aSh_i = aRefSh_i->GetValue(); TopoDS_Shape aSh_i = aRefSh_i->GetValue();