mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-06 17:12:00 +08:00
0030433: Checkshape: bad solid, created by revolution, is reported as valid.
BRepPrimAPI_MakeRevol.cxx, hxx Insert checking of self-intersecting of generated surfaces in MakeRevol BRepTest_SweepCommands.cxx Adjusting command revol to current behavior of MakeRevol algorithm.
This commit is contained in:
@@ -68,7 +68,6 @@ class BRepPrimAPI_MakeRevol : public BRepPrimAPI_MakeSweep
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Builds the Revol of base S, axis A and angle D. If C
|
||||
//! is true, S is copied.
|
||||
@@ -110,15 +109,15 @@ public:
|
||||
|
||||
//! Check if there are degenerated edges in the result.
|
||||
Standard_EXPORT Standard_Boolean HasDegenerated() const;
|
||||
|
||||
Standard_EXPORT const TopTools_ListOfShape& Degenerated() const;
|
||||
|
||||
//! Returns the list of degenerated edges
|
||||
Standard_EXPORT const TopTools_ListOfShape& Degenerated() const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
//! Checks possibilities of producing self-intersection surface
|
||||
//! returns true if all surfaces are valid
|
||||
Standard_EXPORT Standard_Boolean CheckValidity(const TopoDS_Shape& theShape, const gp_Ax1& theA);
|
||||
|
||||
private:
|
||||
|
||||
@@ -127,6 +126,7 @@ private:
|
||||
BRepSweep_Revol myRevol;
|
||||
TopTools_ListOfShape myDegenerated;
|
||||
Handle(BRepTools_History) myHist;
|
||||
Standard_Boolean myIsBuild;
|
||||
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user