if (CT2d->BasisCurve()->IsKind(STANDARD_TYPE(Geom2d_Circle)) &&
( Abs(f-l) >= M_PI) ) {
return 0;
- //---------------------------
- // Cut closed circle.
- //---------------------------
- Standard_Real m = (f + l)*0.5;
-// Modified by Sergey KHROMOV - Wed Mar 6 17:37:28 2002 Begin
- gp_Pnt P = aC->Value(m);
-
- VL = BRepLib_MakeVertex(P);
- B.UpdateVertex(VL, aTol);
-// Modified by Sergey KHROMOV - Wed Mar 6 17:37:30 2002 End
- TopoDS_Shape aLocalShape = E.EmptyCopied();
- TopoDS_Edge FE = TopoDS::Edge(aLocalShape);
- TopoDS_Edge LE = TopoDS::Edge(aLocalShape);
-// TopoDS_Edge FE = TopoDS::Edge(E.EmptyCopied());
-// TopoDS_Edge LE = TopoDS::Edge(E.EmptyCopied());
- FE.Orientation(TopAbs_FORWARD);
- LE.Orientation(TopAbs_FORWARD);
- B.Add (FE,V1);
- B.Add (FE,VL.Oriented(TopAbs_REVERSED));
- B.Range(FE, f, m);
- B.Add (LE,V2);
- B.Add (LE,VL.Oriented(TopAbs_FORWARD));
- B.Range(LE, m, l);
- Cuts.Append(FE.Oriented(E.Orientation()));
- Cuts.Append(LE.Oriented(E.Orientation()));
- //--------
- // Return.
- //--------
- return 2;
}
//-------------------------
if (rotation) {
return Standard_False;
-
+ /*
#ifdef DEB
Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
#else
myStatus = GeomFill_ImpossibleContact;
return Standard_False;
}
-
+*/
}//if_rotation
{
if (!IsLoaded()) return;
Standard_Integer i,nb = themodel->NbEntities();
- thecheckana = TCollection_AsciiString (' ',nb+1);
+ thecheckana = TCollection_AsciiString (nb+1,' ');
for (chl.Start(); chl.More(); chl.Next()) {
Standard_Integer num = chl.Number();
const Handle(Interface_Check) ach = chl.Value();
aCommonPrt.SetVertexParameter1(tm);
aCommonPrt.SetRange1 (af1, al1);
}
- return 0;
+ return 0;
}
-
//
+ /*
dt=al1-af1;
if (dt<1.e-5) {
gp_Pnt aPF, aPL;
aCommonPrt.SetType(TopAbs_EDGE);
}
}
+ */
return 0;
}
if (data->ParamType(num,1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,1);
hasAprefix = reader.DecodePrefix(aPrefix,text);
- if(!hasAprefix)
- ach->AddFail("Enumeration si_prefix has not an allowed value");
+ if(!hasAprefix){
+ ach->AddFail("Enumeration si_prefix has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (prefix) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (prefix) is not an enumeration");
}
StepBasic_SiUnitName aName;
if (data->ParamType(num,2) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,2);
- if(!reader.DecodeName(aName,text))
+ if(!reader.DecodeName(aName,text)){
ach->AddFail("Enumeration si_unit_name has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #3 (name) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #3 (name) is not an enumeration");
ent->Init(hasAprefix,aPrefix,aName);
ent->SetDimensions(aDimensions);
if (data->ParamType(num,1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,1);
hasAprefix = reader.DecodePrefix(aPrefix,text);
- if(!hasAprefix)
- ach->AddFail("Enumeration si_prefix has not an allowed value");
+ if(!hasAprefix){
+ ach->AddFail("Enumeration si_prefix has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (prefix) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (prefix) is not an enumeration");
}
// --- field : name ---
StepBasic_SiUnitName aName;
if (data->ParamType(num,2) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,2);
- if(!reader.DecodeName(aName,text))
+ if(!reader.DecodeName(aName,text)){
ach->AddFail("Enumeration si_unit_name has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (name) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (name) is not an enumeration");
//--- Initialisation of the red entity ---
ent->Init(hasAprefix,aPrefix,aName);
if (data->ParamType(num,1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,1);
hasAprefix = reader.DecodePrefix(aPrefix,text);
- if(!hasAprefix)
- ach->AddFail("Enumeration si_prefix has not an allowed value");
+ if(!hasAprefix){
+ ach->AddFail("Enumeration si_prefix has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (prefix) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (prefix) is not an enumeration");
}
// --- field : name ---
StepBasic_SiUnitName aName;
if (data->ParamType(num,2) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,2);
- if(!reader.DecodeName(aName,text))
+ if(!reader.DecodeName(aName,text)){
ach->AddFail("Enumeration si_unit_name has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (name) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (name) is not an enumeration");
//--- Initialisation of the red entity ---
ent->Init(hasAprefix,aPrefix,aName);
if (data->ParamType(num,1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,1);
hasAprefix = reader.DecodePrefix(aPrefix,text);
- if(!hasAprefix)
- ach->AddFail("Enumeration si_prefix has not an allowed value");
+ if(!hasAprefix){
+ ach->AddFail("Enumeration si_prefix has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (prefix) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (prefix) is not an enumeration");
}
// --- field : name ---
StepBasic_SiUnitName aName;
if (data->ParamType(num,2) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,2);
- if(!reader.DecodeName(aName,text))
+ if(!reader.DecodeName(aName,text)){
ach->AddFail("Enumeration si_unit_name has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (name) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (name) is not an enumeration");
//--- Initialisation of the red entity ---
ent->Init(hasAprefix,aPrefix,aName);
if (data->ParamType(num,1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,1);
hasAprefix = reader.DecodePrefix(aPrefix,text);
- if(!hasAprefix)
- ach->AddFail("Enumeration si_prefix has not an allowed value");
+ if(!hasAprefix){
+ ach->AddFail("Enumeration si_prefix has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #1 (prefix) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #1 (prefix) is not an enumeration");
}
// --- field : name ---
StepBasic_SiUnitName aName;
if (data->ParamType(num,2) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,2);
- if(!reader.DecodeName(aName,text))
+ if(!reader.DecodeName(aName,text)){
ach->AddFail("Enumeration si_unit_name has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (name) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (name) is not an enumeration");
//--- Initialisation of the red entity ---
ent->Init(hasAprefix,aPrefix,aName);
if (data->ParamType(num,1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,1);
hasAprefix = reader.DecodePrefix(aPrefix,text);
- if(!hasAprefix)
- ach->AddFail("Enumeration si_prefix has not an allowed value");
+ if(!hasAprefix){
+ ach->AddFail("Enumeration si_prefix has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #1 (prefix) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #1 (prefix) is not an enumeration");
}
// --- field : name ---
StepBasic_SiUnitName aName;
if (data->ParamType(num,2) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,2);
- if(!reader.DecodeName(aName,text))
+ if(!reader.DecodeName(aName,text)){
ach->AddFail("Enumeration si_unit_name has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (name) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (name) is not an enumeration");
// --- Instance of plex componant SolidAngleUnit ---
num = data->NextForComplex(num);
if (data->ParamType(num,1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,1);
hasAprefix = reader.DecodePrefix(aPrefix,text);
- if(!hasAprefix)
- ach->AddFail("Enumeration si_prefix has not an allowed value");
+ if(!hasAprefix){
+ ach->AddFail("Enumeration si_prefix has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #1 (prefix) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #1 (prefix) is not an enumeration");
}
// --- field : name ---
StepBasic_SiUnitName aName;
if (data->ParamType(num,2) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,2);
- if(!reader.DecodeName(aName,text))
+ if(!reader.DecodeName(aName,text)){
ach->AddFail("Enumeration si_unit_name has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (name) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (name) is not an enumeration");
// --- Instance of plex componant SolidAngleUnit ---
num = data->NextForComplex(num);
if (data->ParamType(num,1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,1);
hasAprefix = reader.DecodePrefix(aPrefix,text);
- if(!hasAprefix)
- ach->AddFail("Enumeration si_prefix has not an allowed value");
+ if(!hasAprefix){
+ ach->AddFail("Enumeration si_prefix has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #1 (prefix) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #1 (prefix) is not an enumeration");
}
// --- field : name ---
StepBasic_SiUnitName aName;
if (data->ParamType(num,2) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,2);
- if(!reader.DecodeName(aName,text))
+ if(!reader.DecodeName(aName,text)){
ach->AddFail("Enumeration si_unit_name has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (name) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (name) is not an enumeration");
// --- Instance of plex componant TimeUnit ---
num = data->NextForComplex(num);
if (data->ParamType(num,1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,1);
hasAprefix = reader.DecodePrefix(aPrefix,text);
- if(!hasAprefix)
- ach->AddFail("Enumeration si_prefix has not an allowed value");
+ if(!hasAprefix){
+ ach->AddFail("Enumeration si_prefix has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #2 (prefix) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #2 (prefix) is not an enumeration");
}
StepBasic_SiUnitName aName;
if (data->ParamType(num,2) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num,2);
- if(!reader.DecodeName(aName,text))
+ if(!reader.DecodeName(aName,text)){
ach->AddFail("Enumeration si_unit_name has not an allowed value");
+ return;
+ }
+ }
+ else{
+ ach->AddFail("Parameter #3 (name) is not an enumeration");
+ return;
}
- else ach->AddFail("Parameter #3 (name) is not an enumeration");
data->NamedForComplex("VOLUME_UNIT",num0,num,ach);
if (!data->CheckNbParams(num,0,ach,"volume_unit")) return;
myFFDone = Standard_False;
// myFFSameDomain = Standard_False;
- while ( MoreFFCouple() ) {
+ if ( MoreFFCouple() ) {
// The two candidate intersecting GeomShapes GS1,GS2 and their types t1,t2
const TopoDS_Shape& GS1 = myFaceScanner.Current();
BS.Box(GS1);
BS.Box(GS2);
myFFDone = Standard_True;
- break;
- NextFFCouple();
}
SetIntersectionDone();
else mkT = outin ? MKI2 : MKI1;
return Standard_True;
////////////////////////////////////////////////
-
+/*
// xxri :
Standard_Real ddot = tgin1di.Dot(faxis);
Standard_Boolean tgaxis = Abs(1-(Abs(ddot))) < FUN_tola(); //=true : edge is tangent to sphere's axis
if ((!onfi) && (!onli)) {mkT = MKI12; return Standard_True;} // @190499
if (closedi) {mkT = MKI12; return Standard_True;}// onfi || onli @190499
xxri = tgin1di;
- }
+ }*/
}//!isT2d
mkT = MKI12; // without restrictions.
Standard_Boolean keepang = (dot > 0);
if (keepang) mkT = outin ? MKI1 : MKI2;
else mkT = outin ? MKI2 : MKI1;
+
return Standard_True;
+
}