mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-10 04:17:44 +08:00
0032684: Draw Harness - fix Draw_Interpretor::Add() misuse due to overloaded syntax
This commit is contained in:
@@ -1915,11 +1915,11 @@ void BRepTest::CurveCommands(Draw_Interpretor& theCommands)
|
||||
|
||||
theCommands.Add("mkoffset",
|
||||
"mkoffset result face/compound of wires nboffset stepoffset [jointype(a/i) [alt]]",__FILE__,
|
||||
mkoffset);
|
||||
mkoffset,g);
|
||||
|
||||
theCommands.Add("openoffset",
|
||||
"openoffset result face/wire nboffset stepoffset [jointype(a/i)]",__FILE__,
|
||||
openoffset);
|
||||
openoffset,g);
|
||||
|
||||
theCommands.Add("mkedge",
|
||||
"mkedge edge curve [surface] [pfirst plast] [vfirst [pfirst] vlast [plast]] ",__FILE__,
|
||||
@@ -1967,11 +1967,11 @@ void BRepTest::CurveCommands(Draw_Interpretor& theCommands)
|
||||
edgeintersector,g);
|
||||
|
||||
theCommands.Add("build3d",
|
||||
"build3d S [tol]",
|
||||
"build3d S [tol]",__FILE__,
|
||||
build3d, g);
|
||||
|
||||
theCommands.Add("reducepcurves",
|
||||
"reducepcurves shape1 shape2 ...",
|
||||
"reducepcurves shape1 shape2 ...",__FILE__,
|
||||
reducepcurves, g);
|
||||
|
||||
theCommands.Add("concatC0wire",
|
||||
|
||||
@@ -2502,7 +2502,7 @@ void BRepTest::FeatureCommands(Draw_Interpretor& theCommands)
|
||||
|
||||
theCommands.Add("offsetparameter",
|
||||
"offsetparameter Tol Inter(c/p) JoinType(a/i/t) [RemoveInternalEdges(r/k)]",
|
||||
__FILE__, offsetparameter);
|
||||
__FILE__, offsetparameter, g);
|
||||
|
||||
theCommands.Add("offsetload",
|
||||
"offsetload shape offset bouchon1 bouchon2 ...",
|
||||
@@ -2523,53 +2523,53 @@ void BRepTest::FeatureCommands(Draw_Interpretor& theCommands)
|
||||
|
||||
theCommands.Add("featprism",
|
||||
"Defines the arguments for a prism : featprism shape element skface Dirx Diry Dirz Fuse(0/1/2) Modify(0/1)",
|
||||
__FILE__, DEFIN);
|
||||
__FILE__, DEFIN, g);
|
||||
|
||||
theCommands.Add("featrevol",
|
||||
"Defines the arguments for a revol : featrevol shape element skface Ox Oy Oz Dx Dy Dz Fuse(0/1/2) Modify(0/1)",
|
||||
__FILE__, DEFIN);
|
||||
__FILE__, DEFIN, g);
|
||||
|
||||
theCommands.Add("featpipe",
|
||||
"Defines the arguments for a pipe : featpipe shape element skface spine Fuse(0/1/2) Modify(0/1)",
|
||||
__FILE__, DEFIN);
|
||||
__FILE__, DEFIN, g);
|
||||
|
||||
theCommands.Add("featdprism",
|
||||
"Defines the arguments for a drafted prism : featdprism shape face skface angle Fuse(0/1/2) Modify(0/1)",
|
||||
__FILE__, DEFIN);
|
||||
__FILE__, DEFIN, g);
|
||||
|
||||
theCommands.Add("featlf",
|
||||
"Defines the arguments for a linear rib or slot : featlf shape wire plane DirX DirY DirZ DirX DirY DirZ Fuse(0/1/2) Modify(0/1)",
|
||||
__FILE__, DEFIN);
|
||||
__FILE__, DEFIN, g);
|
||||
|
||||
theCommands.Add("featrf",
|
||||
"Defines the arguments for a rib or slot of revolution : featrf shape wire plane X Y Z DirX DirY DirZ Size Size Fuse(0/1/2) Modify(0/1)",
|
||||
__FILE__, DEFIN);
|
||||
__FILE__, DEFIN, g);
|
||||
|
||||
theCommands.Add("addslide",
|
||||
" Adds sliding elements : addslide prism/revol/pipe edge face [edge face...]",
|
||||
__FILE__, ADD);
|
||||
__FILE__, ADD, g);
|
||||
|
||||
theCommands.Add("featperform",
|
||||
" Performs the prism revol dprism linform or pipe :featperform prism/revol/pipe/dprism/lf result [[Ffrom] Funtil]",
|
||||
__FILE__, PERF);
|
||||
__FILE__, PERF, g);
|
||||
|
||||
theCommands.Add("featperformval",
|
||||
" Performs the prism revol dprism or linform with a value :featperformval prism/revol/dprism/lf result value",
|
||||
__FILE__, PERF);
|
||||
__FILE__, PERF, g);
|
||||
|
||||
theCommands.Add("endedges",
|
||||
" Return top and bottom edges of dprism :endedges dprism shapetop shapebottom First/LastShape (1/2)",
|
||||
__FILE__, BOSS);
|
||||
__FILE__, BOSS, g);
|
||||
|
||||
theCommands.Add("fillet",
|
||||
" Perform fillet on compounds of edges :fillet result object rad1 comp1 rad2 comp2 ...",
|
||||
__FILE__, BOSS);
|
||||
__FILE__, BOSS, g);
|
||||
|
||||
theCommands.Add("bossage",
|
||||
" Perform fillet on top and bottom edges of dprism :bossage dprism result radtop radbottom First/LastShape (1/2)",
|
||||
__FILE__, BOSS);
|
||||
__FILE__, BOSS, g);
|
||||
|
||||
theCommands.Add("offsetshapesimple",
|
||||
"offsetshapesimple result shape offsetvalue [solid] [tolerance=1e-7]",
|
||||
__FILE__, ComputeSimpleOffset);
|
||||
__FILE__, ComputeSimpleOffset, g);
|
||||
}
|
||||
|
||||
@@ -757,15 +757,15 @@ void BRepTest::FilletCommands(Draw_Interpretor& theCommands)
|
||||
theCommands.Add("rollingball",
|
||||
"rollingball r S radius [stopf1 ..] @ [f1 f2 ..] @ [e1 ..]",
|
||||
__FILE__,
|
||||
rollingball);
|
||||
rollingball, g);
|
||||
|
||||
theCommands.Add("brollingball",
|
||||
"brollingball r S radius [stopf1 ..] @ [f1 f2 ..] @ [e1 ..]",
|
||||
__FILE__,
|
||||
rollingball);
|
||||
rollingball, g);
|
||||
|
||||
theCommands.Add("trollingball",
|
||||
"trollingball r S radius [stopf1 ..] @ [f1 f2 ..] @ [e1 ..]",
|
||||
__FILE__,
|
||||
rollingball);
|
||||
rollingball, g);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user