//=======================================================================
//function : Add
-//purpose : add faces et edges de glissement
+//purpose : add sliding faces and edges
//=======================================================================
void BRepFeat_MakeDPrism::Add(const TopoDS_Edge& E,
//=======================================================================
//function : Perform
-//purpose : feature de la hauteur Height
+//purpose : feature of Height
//=======================================================================
void BRepFeat_MakeDPrism::Perform(const Standard_Real Height)
}
}
-// gestion des faces de collage
+// management of gluing faces
//SetGluedFaces(mySkface, mySbase, theBase, mySlface, theDPrism, myGluedF);
GluedFacesValid();
// VerifGluedFaces(mySkface, theBase, myBCurve, myCurves, theDPrism, myGluedF);
- if(!myGluedF.IsEmpty()) { // cas collage
+ if(!myGluedF.IsEmpty()) { // case gluing
myJustGluer = Standard_True;
theDPrism.Curves(myCurves);
myBCurve = theDPrism.BarycCurve();
GlobalPerform();
}
-// si il n'y a pas de collage -> appel des ope topo
+// if there is no gluing -> call topological operations
if(!myJustGluer) {
if(myFuse == 1) {
//modified by NIZNHY-PKV Thu Mar 21 17:32:17 2002 f
//=======================================================================
//function : Perform
-//purpose : feature limitee par le shape Until
+//purpose : feature limited by the shape Until
//=======================================================================
void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& Until)
//=======================================================================
//function : Perform
-//purpose : feature limitee par les deux shapes
+//purpose : feature limited by two shapes
//=======================================================================
void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& From,
if(!Trff) {
MajMap(myPbase,theDPrism,myMap,myFShape,myLShape);
- // On fait systematiquement le dprism
+ // Make systematically dprism
myGShape = VraiDPrism;
GeneratedShapeValid();
- // gestion des faces de collage
+ // management of gluing faces
//SetGluedFaces(TopoDS_Face(), // on ne veut pas binder mySkface
// mySbase, myPbase, mySlface, theDPrism, myGluedF);
GluedFacesValid();
theDPrism.Curves(myCurves);
myBCurve = theDPrism.BarycCurve();
- // reconstruction topologique
+ // topologic reconstruction
GlobalPerform();
}
else {
- // gestion des descendants
+ // management of descendants
MajMap(myPbase,theDPrism,myMap,myFShape,myLShape);
Handle(Geom_Curve) C1;
if(sens == -1) {
ASI2.Perform(scur);
TopAbs_Orientation OrU, OrF;
TopoDS_Face FFrom, FUntil;
- //sens du dprism
+ //direction of dprism
if (ASI1.IsDone() && ASI1.NbPoints(1) >=1) {
if (myFuse == 1) {
OrU = ASI1.Point(1,1).Orientation();
//=======================================================================
//function : PerformFromEnd
-//purpose : feature mi-infinie limitee par le shape Until de l'autre cote
+//purpose : feature semiinfinite limited by the shape Until from the other side
//=======================================================================
void BRepFeat_MakeDPrism::PerformFromEnd(const TopoDS_Shape& Until)
return;
}
- if(!Trf) { // cas face finie
+ if(!Trf) { // case finite face
MajMap(myPbase,theDPrism,myMap,myFShape,myLShape);
myGShape = VraiDPrism;
GeneratedShapeValid();
myBCurve = theDPrism.BarycCurve();
GlobalPerform();
}
- else { // cas support
+ else { // case support
MajMap(myPbase,theDPrism,myMap,myFShape,myLShape);
Handle(Geom_Curve) C2;
if(sens == -1) {
//=======================================================================
//function : PerformThruAll
-//purpose : feature a travers tout le shape initial
+//purpose : feature throughout the entire initial shape
//=======================================================================
void BRepFeat_MakeDPrism::PerformThruAll()
//=======================================================================
//function : PerformUntilHeight
-//purpose : feature jusqu'un shape de la hauteur donnee
+//purpose : feature until the shape is of the given height
//=======================================================================
void BRepFeat_MakeDPrism::PerformUntilHeight(const TopoDS_Shape& Until,
LocOpe_DPrism theDPrism(myPbase,sens*Height,myAngle);
TopoDS_Shape VraiDPrism = theDPrism.Shape();
- if(!Trf) { // cas face finie
+ if(!Trf) { // case face finished
MajMap(myPbase,theDPrism,myMap,myFShape,myLShape);
myGShape = VraiDPrism;
GeneratedShapeValid();
myBCurve = theDPrism.BarycCurve();
GlobalPerform();
}
- else { // cas support
+ else { // case support
MajMap(myPbase,theDPrism,myMap,myFShape,myLShape);
Handle(Geom_Curve) C1;
if(sens == -1) {
//=======================================================================
//function : Curves
-//purpose : courbes paralleles a l'axe du prism
+//purpose : curves parallel to the axis of the prism
//=======================================================================
void BRepFeat_MakeDPrism::Curves(TColGeom_SequenceOfCurve& scur)
// Edges Bottom
if (signature < 0) {
-// Attention voir si TgtEdges est important
+// Attention check if TgtEdges is important
myLatEdges = NewEdges();
}
else if (signature > 0) {
//=======================================================================
//function : HeightMax
-//purpose : Calcul de la hauteur du prisme selon les parametres d`une boite englobante
+//purpose : Calculate the height of the prism following the parameters of the bounding box
//=======================================================================
static Standard_Real HeightMax(const TopoDS_Shape& theSbase, // shape initial
//=======================================================================
//function : SensOfPrism
-//purpose : determiner la direction de generation du prism
+//purpose : determine the direction of prism generation
//=======================================================================
Standard_Integer SensOfPrism(const Handle(Geom_Curve) C,
const TopoDS_Shape& Until)
}
}
- // Glissements
+ // Sliding
TopTools_DataMapIteratorOfDataMapOfShapeListOfShape itm(theSlmap);
if(!theSlmap.IsEmpty()) {
for (; itm.More(); itm.Next()) {
//=======================================================================
//function : VerifGluedFaces
-//purpose : Verification intersection Outil/theSkface = thePbase
-// Si oui -> OK si non -> cas sans collage
+//purpose : Checking intersection Tool/theSkface = thePbase
+// if yes -> OK if no -> case without gluing
//=======================================================================
#ifdef DEB
static void VerifGluedFaces(const TopoDS_Face& theSkface,
if (!GluedFaces) {
#ifdef DEB
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << " Intersection DPrism/skface : pas de collage" << endl;
+ if (trc) cout << " Intersection DPrism/skface : no gluing" << endl;
#endif
theMap.Clear();
}
Standard_Boolean ValRet = Standard_False;
if (typS1 == STANDARD_TYPE(Geom_Plane)) {
- S1 = BRep_Tool::Surface(F1); // pour appliquer la location.
+ S1 = BRep_Tool::Surface(F1); // to apply the location.
S2 = BRep_Tool::Surface(F2);
gp_Pln pl1( (*((Handle(Geom_Plane)*)&S1))->Pln());
gp_Pln pl2( (*((Handle(Geom_Plane)*)&S2))->Pln());