#include <BlockFix_SphereSpaceModifier.hxx>
-#include <ShapeAnalysis.hxx>
-
#include <ShapeFix_Edge.hxx>
#include <TopExp.hxx>
if (aSurf->IsKind(STANDARD_TYPE(Geom_SphericalSurface))) {
Standard_Real Umin, Umax, Vmin, Vmax;
- ShapeAnalysis::GetFaceUVBounds (aFace, Umin, Umax, Vmin, Vmax);
+ BRepTools::UVBounds(aFace, Umin, Umax, Vmin, Vmax);
Standard_Real PI2 = M_PI/2.;
Handle(Geom_SphericalSurface) aSphere = Handle(Geom_SphericalSurface)::DownCast(aSurf);
gp_Sphere sp = aSphere->Sphere();
#include <Geom_Plane.hxx>
#include <GProp_GProps.hxx>
#include <GProp_PrincipalProps.hxx>
-#include <ShapeAnalysis.hxx>
#include <ShapeAnalysis_Surface.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
//Compute the parameters
Standard_Real U1,U2,V1,V2;
- ShapeAnalysis::GetFaceUVBounds(F,U1,U2,V1,V2);
+ BRepTools::UVBounds(F,U1,U2,V1,V2);
Standard_Real U = U1 + (U2-U1)*theUParam;
Standard_Real V = V1 + (V2-V1)*theVParam;
//Compute the parameters
Standard_Real U1,U2,V1,V2;
- ShapeAnalysis::GetFaceUVBounds(F,U1,U2,V1,V2);
+ BRepTools::UVBounds(F,U1,U2,V1,V2);
Standard_Real U = U1 + (U2-U1)*theUParam;
Standard_Real V = V1 + (V2-V1)*theVParam;
#include <BRepBuilderAPI_MakeFace.hxx>
#include <BRep_Tool.hxx>
#include <BRepTopAdaptor_FClass2d.hxx>
-#include <ShapeAnalysis.hxx>
+#include <BRepTools.hxx>
#include <TopAbs.hxx>
#include <TopoDS.hxx>
Standard_Real aKoefU = aPI.GetParameterU();
Standard_Real aKoefV = aPI.GetParameterV();
Standard_Real aUmin,aUmax,aVmin,aVmax;
- ShapeAnalysis::GetFaceUVBounds(aFace,aUmin,aUmax,aVmin,aVmax);
+ BRepTools::UVBounds(aFace,aUmin,aUmax,aVmin,aVmax);
Standard_Real aDeltaU = aUmax - aUmin;
Standard_Real aDeltaV = aVmax - aVmin;
Standard_Real aParamU = aUmin + aDeltaU*aKoefU;
#include <GEOM_Function.hxx>
#include <GEOMAlgo_AlgoTools.hxx>
-#include <ShapeAnalysis.hxx>
-
#include <BRep_Builder.hxx>
#include <BRep_Tool.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <BRepBuilderAPI_MakeVertex.hxx>
#include <BRepExtrema_DistShapeShape.hxx>
+#include <BRepTools.hxx>
#include <TopAbs.hxx>
#include <TopExp.hxx>
TopoDS_Face F = TopoDS::Face(aRefShape);
Handle(Geom_Surface) aSurf = BRep_Tool::Surface(F);
Standard_Real U1,U2,V1,V2;
- //aSurf->Bounds(U1,U2,V1,V2);
- ShapeAnalysis::GetFaceUVBounds(F,U1,U2,V1,V2);
+ BRepTools::UVBounds(F,U1,U2,V1,V2);
Standard_Real U = U1 + (U2-U1) * aPI.GetParameter();
Standard_Real V = V1 + (V2-V1) * aPI.GetParameter2();
aPnt = aSurf->Value(U,V);
#include <BRepClass3d_SolidClassifier.hxx>
#include <BRepLib.hxx>
#include <BRepLib_MakeEdge.hxx>
+#include <BRepTools.hxx>
#include <BRepTools_WireExplorer.hxx>
-#include <ShapeAnalysis.hxx>
#include <ShapeAnalysis_FreeBounds.hxx>
#include <TNaming_CopyShape.hxx>
// Construct a real geometric parameter.
aFace.Orientation(TopAbs_FORWARD);
- ShapeAnalysis::GetFaceUVBounds(aFace,U1,U2,V1,V2);
+ BRepTools::UVBounds(aFace,U1,U2,V1,V2);
if (isUIso) {
aParam = U1 + (U2 - U1)*aParam;
// Get U, V bounds of the face.
aFace.Orientation(TopAbs_FORWARD);
- ShapeAnalysis::GetFaceUVBounds(aFace, aU1, aU2, aV1, aV2);
+ BRepTools::UVBounds(aFace, aU1, aU2, aV1, aV2);
// Get the surface of original type
while (aType == STANDARD_TYPE(Geom_RectangularTrimmedSurface)) {
Standard_Real aV2;
// Get U, V bounds of the face.
- ShapeAnalysis::GetFaceUVBounds(theFace, aU1, aU2, aV1, aV2);
+ BRepTools::UVBounds(theFace, aU1, aU2, aV1, aV2);
const Standard_Real aURange = aU2 - aU1;
const Standard_Real aVRange = aV2 - aV1;
IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ShapeDriver,GEOM_BaseDriver)
//modified by NIZNHY-PKV Wed Dec 28 13:48:31 2011f
+/*
#include <TopoDS_Iterator.hxx>
#include <TopTools_HSequenceOfShape.hxx>
#include <ShapeAnalysis_FreeBounds.hxx>
//function : KeepEdgesOrder
//purpose :
//=======================================================================
-/*
void KeepEdgesOrder(const Handle(TopTools_HSequenceOfShape)& aEdges,
const Handle(TopTools_HSequenceOfShape)& aWires)
{
#include <gp_Pln.hxx>
#include <gp_Lin.hxx>
-#include <ShapeAnalysis.hxx>
#include <ShapeFix_Shape.hxx>
#include <ShapeFix_ShapeTolerance.hxx>
// non solid case or any periodic surface (Mantis 22454).
double U1,U2,V1,V2;
- // changes for 0020677: EDF 1219 GEOM: MinDistance gives 0 instead of 20.88
- //S->Bounds(U1,U2,V1,V2); changed by
- ShapeAnalysis::GetFaceUVBounds(TopoDS::Face(theModifiedShape),U1,U2,V1,V2);
+ BRepTools::UVBounds(TopoDS::Face(theModifiedShape),U1,U2,V1,V2);
// end of changes for 020677 (dmv)
Handle(Geom_RectangularTrimmedSurface) TrS1 =
new Geom_RectangularTrimmedSurface(S,U1,(U1+U2)/2.,V1,V2);