mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-28 18:30:36 +05:00
0022869: Group creation support for MakePipeBiNormalAlongVector
This commit is contained in:
parent
0cad33a002
commit
794bb4ac77
@ -116,6 +116,9 @@ static void StoreGroups(GEOMImpl_IPipe *theCI,
|
|||||||
static bool DoGroups(BRepOffsetAPI_MakePipeShell &theSweep,
|
static bool DoGroups(BRepOffsetAPI_MakePipeShell &theSweep,
|
||||||
TopTools_SequenceOfShape *theGroups);
|
TopTools_SequenceOfShape *theGroups);
|
||||||
|
|
||||||
|
static bool CreateGroups(BRepOffsetAPI_MakePipeShell &theSweep,
|
||||||
|
GEOMImpl_IPipe *theCI);
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : GetID
|
//function : GetID
|
||||||
//purpose :
|
//purpose :
|
||||||
@ -2491,6 +2494,11 @@ static TopoDS_Shape CreatePipeBiNormalAlongVector(const TopoDS_Wire& aWirePath,
|
|||||||
PipeBuilder.MakeSolid();
|
PipeBuilder.MakeSolid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!CreateGroups(PipeBuilder, aCIBN)) {
|
||||||
|
if (aCIBN) delete aCIBN;
|
||||||
|
Standard_ConstructionError::Raise("Generate groups failure");
|
||||||
|
}
|
||||||
|
|
||||||
return PipeBuilder.Shape();
|
return PipeBuilder.Shape();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2719,8 +2727,8 @@ bool DoGroups(BRepOffsetAPI_MakePipeShell &theSweep,
|
|||||||
//function : CreateGroups
|
//function : CreateGroups
|
||||||
//purpose : auxilary for Execute()
|
//purpose : auxilary for Execute()
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
static bool CreateGroups(BRepOffsetAPI_MakePipeShell &theSweep,
|
bool CreateGroups(BRepOffsetAPI_MakePipeShell &theSweep,
|
||||||
GEOMImpl_IPipe *theCI)
|
GEOMImpl_IPipe *theCI)
|
||||||
{
|
{
|
||||||
if (!theCI->GetGenerateGroups()) {
|
if (!theCI->GetGenerateGroups()) {
|
||||||
// Nothing to do.
|
// Nothing to do.
|
||||||
|
Loading…
Reference in New Issue
Block a user