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

0027386: BRepOffsetAPI_MakePipeShell does not provide history of generations

The method BRepOffsetAPI_MakePipeShell::Generated now returns generated shapes for sub-edges and sub-vertices of sections.

The method BRepFill_PipeShell::BuildHistory is redesigned: now it builds generated shapes for sub-edges and sub-vertices of sections.

New Draw command "gensweep" is added to sweep commands for testing of history building.
This commit is contained in:
jgv
2016-10-17 13:59:58 +03:00
committed by abv
parent 681f3919f0
commit 953d87f32c
22 changed files with 845 additions and 334 deletions

View File

@@ -23,7 +23,10 @@
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Wire.hxx>
BRepFill_Section::BRepFill_Section() :islaw(0), contact(0), correction(0)
BRepFill_Section::BRepFill_Section() :islaw(0),
ispunctual(0),
contact(0),
correction(0)
{
}
@@ -33,13 +36,16 @@ BRepFill_Section::BRepFill_Section(const TopoDS_Shape& Profile,
const Standard_Boolean WithContact,
const Standard_Boolean WithCorrection)
: vertex(V),
islaw(0),contact(WithContact),
islaw(0),
ispunctual(0),
contact(WithContact),
correction(WithCorrection)
{
if (Profile.ShapeType() == TopAbs_WIRE)
wire = TopoDS::Wire(Profile);
else if (Profile.ShapeType() == TopAbs_VERTEX)
{
ispunctual = Standard_True;
TopoDS_Vertex aVertex = TopoDS::Vertex(Profile);
BRep_Builder BB;