endif()
else()
if (_targetAutoMoc OR _targetAutoUic OR _targetAutoRcc)
- # depend on the original target's implicity generated <targetname>_automoc target
+ # depend on the original target's implicitly generated <targetname>_automoc target
if (CMAKE_VERSION VERSION_LESS "3.8.0")
add_dependencies(${_unityTargetName} ${_target}_automoc)
else()
return $lret
}
-# close dependencies of ltk. (full wok pathes of toolkits)
+# close dependencies of ltk. (full work paths of toolkits)
# The CURRENT WOK LOCATION MUST contains ALL TOOLKITS required.
# (locate not performed.)
proc osutils:tk:close { ltk theSrcDir theSourceDirOther } {
# relative anIncPath in connection with aCasRoot/$theSrcDir
set aFromBuildIncToSrcPath [relativePath "$anIncPath" "$aCasRoot/$theSrcDir"]
- # create and copy short-cut header files
+ # create and copy shortcut header files
foreach anUnit $anUnits {
osutils:checksrcfiles ${anUnit} $theSrcDir
return $r
}
-# Returs for a full path the liste of n last directory part
+# Returns for a full path the liste of n last directory part
# n = 1 => tail
# n = 2 => dir/file.c
# n = 3 => sdir/dir/file.c
# commercial license or contractual agreement.
# =======================================================================
-# This script contains auxilary functions which can be used
+# This script contains auxiliary functions which can be used
# in documentation generation process
# =======================================================================
}
}
-# search and rename the indeces (old names) of @theNewNames with their values (new ones)
+# search and rename the indices (old names) of @theNewNames with their values (new ones)
# processes files that have @theExtensions only in @thePath folder
proc Rename {thePath theExtensions theNewNames theCheckMode} {
upvar $theNewNames aNewNames
@figure{/specification/boolean_operations/images/boolean_image046.png,"",230}
-* The result of *Cut21* operation is is not defined because the dimension of the face (2) is less than the dimension of the solid (3).
+* The result of *Cut21* operation is not defined because the dimension of the face (2) is less than the dimension of the solid (3).
@subsubsection specification__boolean_9_4_16 Case 16: A Face and a Solid that have overlapping faces.
@figure{/specification/boolean_operations/images/boolean_image049.png,"",230}
-* The result of *Cut21* operation is is not defined because the dimension of the face (2) is less than the dimension of the solid (3).
+* The result of *Cut21* operation is not defined because the dimension of the face (2) is less than the dimension of the solid (3).
@subsubsection specification__boolean_9_4_17 Case 17: A Face and a Solid that have overlapping edges.
@figure{/specification/boolean_operations/images/boolean_image051.png,"",230}
-* The result of *Cut21* operation is is not defined because the dimension of the face (2) is less than the dimension of the solid (3).
+* The result of *Cut21* operation is not defined because the dimension of the face (2) is less than the dimension of the solid (3).
@subsubsection specification__boolean_9_4_18 Case 18: A Face and a Solid that have overlapping vertices.
@figure{/specification/boolean_operations/images/boolean_image053.png,"",230}
-* The result of *Cut21* operation is is not defined because the dimension of the face (2) is less than the dimension of the solid (3).
+* The result of *Cut21* operation is not defined because the dimension of the face (2) is less than the dimension of the solid (3).
@subsubsection specification__boolean_9_4_19 Case 19: Two intersecting Solids.
\f[L_{indirect} = \int\limits_H f(v, l) L_i^{indirect}(l) \cos\theta_l\, \mathrm{d}l\f]
It includes influence of light reflected or scattered from other points and environment's contribution.
-It's impossible to achieve photorealistic results without this component, but is is also very difficult to compute.
+It's impossible to achieve photorealistic results without this component, but it is also very difficult to compute.
While the cross point light interaction cannot be calculated in a simple way (especially in real time rendering), the environment illumination has some options to be realized via precomputational work before visualization.
But right now lets summarize the practical application of illumination model.
At this moment the output radiance is represented as:
Method *V3d_View::Export()*, based on *gl2ps* library, requires fixed pipeline and will return error if used with default settings.
Applications should explicitly enable fixed pipeline by setting *OpenGl_Caps::ffpEnable* flag to TRUE within *OpenGl_GraphicDriver::ChangeOptions()* before creating the viewer to use *V3d_View::Export()*.
-This method is declared as deprecated and will be removed in one of the the next OCCT releases.
+This method is declared as deprecated and will be removed in one of the next OCCT releases.
The recommended way to generate a vector image of a 3D model or scene is to use an application-level solution independent from OpenGL.
@subsection upgrade_710_trsfpers Transformation persistence
Without a value, *set* returns the content of the variable.
-*unset* deletes variables. It is is also used to delete Draw variables.
+*unset* deletes variables. It is also used to delete Draw variables.
**Example:**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.cpp}
* *-FX Tx Ty TZ [Nx Ny Nz]* : Tangent and Normal are fixed
* *-G guide*
-These commands are used to create a shape from wires. One wire is designated as the contour that defines the direction; it is called the spine. At least one other wire is used to define the the sweep profile.
+These commands are used to create a shape from wires.
+One wire is designated as the contour that defines the direction; it is called the spine.
+At least one other wire is used to define the sweep profile.
* **mksweep** -- initializes the sweep creation and defines the wire to be used as the spine.
* **addsweep** -- defines the wire to be used as the profile.
* **deletesweep** -- cancels the choice of profile wire, without leaving the mksweep mode. You can re-select a profile wire.
@subsection occt_draw_8_3 General commands
-These are auxilary commands used for the analysis of result of translation of IGES and STEP files.
+These are auxiliary commands used for the analysis of result of translation of IGES and STEP files.
@subsubsection occt_draw_8_3_1 count
@figure{/user_guides/modeling_algos/images/modeling_algos_image033.png,"Generating a sweep",360}
-*BRepPrimAPI_MakeSweep class* is a deferred class used as a root of the the following sweep classes:
+*BRepPrimAPI_MakeSweep class* is a deferred class used as a root of the following sweep classes:
* *BRepPrimAPI_MakePrism* -- produces a linear sweep
* *BRepPrimAPI_MakeRevol* -- produces a rotational sweep
* *BRepPrimAPI_MakePipe* -- produces a general sweep.
@subsubsection occt_modalg_4_2_3 Rotational Sweep
*BRepPrimAPI_MakeRevol* class allows creating a rotational sweep from a shape, an axis (gp_Ax1), and an angle. The angle has a default value of 2*PI which means a closed revolution.
-*BRepPrimAPI_MakeRevol* constructors have a last argument to copy or share the original shape. The following code creates a a full and a partial rotation using a face, an axis and an angle.
+*BRepPrimAPI_MakeRevol* constructors have a last argument to copy or share the original shape.
+The following code creates a full and a partial rotation using a face, an axis and an angle.
~~~~~
TopoDS_Face F = ...; // the profile
The long cylinder representing a "stem" of the nail refers to the corresponding parameters
of the cone to define its own data (position, radius and height). It means that the long cylinder depends on the cone.
- The parameters of the head cylinder may be expressed through the cone parameters
- only or through the cone and the long cylinder parameters.
+ The parameters of the head cylinder may be expressed through the cone parameters
+ only or through the cone and the long cylinder parameters.
It is suggested to express the position and the radius of the head cylinder
through the position and the radius of the long cylinder, and the height
of the head cylinder through the height of the cone.
@subsubsection occt_ocaf_8a_3_1 Creation of the nail
- This method of the interface creates a data tree for the nail at a given leaf of OCAF data tree.
-
- It creates three sub-leaves for the cone and two cylinders and allocates the necessary data (references at the sub-leaves of the long and the head cylinders).
-
- It sets the default values of position, radius and height of the nail.
-
+ This method of the interface creates a data tree for the nail at a given leaf of OCAF data tree.
+
+ It creates three sub-leaves for the cone and two cylinders and allocates the necessary data (references at the sub-leaves of the long and the head cylinders).
+
+ It sets the default values of position, radius and height of the nail.
+
The nail has the following user parameters:
* The position -- coincides with the position of the cone
* The radius of the stem part of the nail -- coincides with the radius of the cone
// A virtual method ::Arguments() returns a list of arguments of the function.
CylinderDriver::Arguments( TDF_LabelList& args )
{
- // The direct arguments, located at sub-leaves of the fucntion, are collected (see picture 2).
+ // The direct arguments, located at sub-leaves of the function, are collected (see picture 2)
TDF_ChildIterator cIterator( Label(), false );
for (; cIterator.More(); cIterator.Next() )
{
| :----- | :------ | :----- | :----- |
| Points | Geom_CartesianPoint, Geom2d_CartesianPoint | cartesian_point | |
| | TColgp_Array1OfPnt, TColgp_Array1OfPnt2d | polyline | |
-| Placements | Geom_Axis1Plasement, Geom2d_AxisPlacement | axis1_placement | |
+| Placements | Geom_Axis1Placement, Geom2d_AxisPlacement | axis1_placement | |
| | Geom_Axis2Placement | axis2_placement_3d | |
| Directions | Geom_Direction, Geom2d_Direction | direction | |
| Vectors | Geom_Vector, Geom2d_Vector | vector | |
If, however, you require types of interactive objects and filters other than those provided, you will need to know the mechanics of presentable and selectable objects, specifically how to implement their virtual functions.
To do this requires familiarity with such fundamental concepts as the Sensitive Primitive and the Presentable Object.
-The the following packages are used to display 3D objects:
+The following packages are used to display 3D objects:
* *AIS*;
* *StdPrs*;
* *Prs3d*;
n = (dw&CBRS_ALIGN_LEFT && n==0) ? AFX_IDW_DOCKBAR_LEFT : n;
n = (dw&CBRS_ALIGN_RIGHT && n==0) ? AFX_IDW_DOCKBAR_RIGHT : n;
- // When we take the default parameters on rect, DockControlBar will dock
- // each Toolbar on a seperate line. By calculating a rectangle, we in effect
- // are simulating a Toolbar being dragged to that location and docked.
+ // When we take the default parameters on rect, DockControlBar will dock each Toolbar on a separate line.
+ // By calculating a rectangle, we in effect are simulating a Toolbar being dragged to that location and docked.
DockControlBar(Bar,n,&rect);
}
const int ret = D->Execute(log);
if (ret == 0)
{
- // Successfuly executed!
+ // Successfully executed!
itr.SetStatus(L, TFunction_ES_Succeeded);
TDF_LabelList res;
ShapeAnalysis_Edge sae;
if(sae.CheckOverlapping(e1,e2,aTol,aDistDomain)) {
if(aDistDomain ==0.0)
- di<<"Edges is overlaping comletly\n";
+ di<<"Edges are overlapping completely\n";
else {
- di<<"Edges is overlaped\n";
+ di<<"Edges are overlapped\n";
di<<"with tolerance = "<<aTol<<"\n";
di<<"on segment length = "<<aDistDomain<<"\n";
}
}
- else di<<"Edges is not overlaped\n";
+ else di<<"Edges are not overlapped\n";
return 0;
}
__FILE__,connectedges,g);
}
-
# fix solid
mkvolume r part_2 f_in f1 f2
-# find the outher solid - the one containing the outer cylinder (part_2 face)
+# find the other solid - the one containing the outer cylinder (part_2 face)
foreach s [explode r so] {
set found 0
foreach f [explode $s f] {
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
-# Permuation of all forms of construction
-# when fUsing a box and a pris
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from front
bfuse result ba bb
checkprops result -s 170
-checkview -display result -2d -otherwise { ba bb } -s -path ${imagedir}/${test_image}.png
\ No newline at end of file
+checkview -display result -2d -otherwise { ba bb } -s -path ${imagedir}/${test_image}.png
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from left
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from top
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from back
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from right
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from bottom
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from front
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from left
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from top
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from back
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
box ba 3 3 0 5 7 4
# prism from right
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
vertex vp3 8 9 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
vertex vp3 8 9 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
-# Permuation of all forms of construction
-# when fUsing a box and a prism
+# Permutation of all forms of construction
+# when fusing a box and a prism
vertex vp1 3 3 0
vertex vp2 8 3 0
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
# K series from front face
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
vertex vp1 3 3 0
vertex vp2 8 3 0
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
vertex vp1 3 3 0
vertex vp2 8 3 0
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
vertex vp1 3 3 0
vertex vp2 8 3 0
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
# L series from right side face
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
# L series from right side face
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
# L series from right side face
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
# L series from right side face
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
# M series from top
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
# M series from top
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
# M series from top
# Permutation of all forms of construction
-# when fUsing a box and an oblong prism
+# when fusing a box and an oblong prism
# M series from top
# to be used in comparison; 0.001 is added to avoid zero value
set prop [uplevel sprops $shape [expr 0.5 * abs($tol_rel) + 0.001]]
- # get te value
+ # get the value
if { ! [regexp {Mass\s*:\s*([0-9.e+-]+)} $prop res area] } {
puts "Error: cannot get area of the shape $shape"
return
puts "================"
puts ""
#######################################################################################
-# XML persistance should be more robust
+# XML persistence should be more robust
#######################################################################################
#
# Tested file is contains 3 labels with TDataStd_RealArray attributes
puts "OCC22976"
puts "==========="
######################################################
-# A draw-command CopyDF failes to copy content of a label
+# A draw-command CopyDF fails to copy content of a label
######################################################
set BugNumber OCC22976
puts "=========="
puts ""
########################################################
-# Shape orientation processing mechanis, redesign
+# Shape orientation processing mechanism, redesign
########################################################
## test for keeping Orientation (cbf)
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
puts "=========="
puts ""
########################################################
-# Shape orientation processing mechanis, redesign
+# Shape orientation processing mechanism, redesign
########################################################
## test for keeping Orientation (std)
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
puts "=========="
puts ""
########################################################
-# Shape orientation processing mechanis, redesign
+# Shape orientation processing mechanism, redesign
########################################################
## test for keeping Orientation (xml)
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
SaveAs D1 $imagedir/bug28428_new.cbf
Close D1
# This produced a NamedShape driver failure with catching by general driver
-# and output a failure message (catched by parse.rules)
+# and output a failure message (caught by parse.rules)
Open $imagedir/bug28428_new.cbf D2
Close D2
set act_afternone [expr $act_none+1]
-# retuns 1 if after this action there exists attribute on the label
+# returns 1 if after this action there exists attribute on the label
proc produces_attribute1 {action} {
global act_create act_modify act_forgetcreate act_createmodify
if {$action==$act_create || $action==$act_createmodify || $action==$act_modify || $action==$act_forgetcreate} {
return 0
}
-# retuns 1 if after two actions there exists attribute on the label
+# returns 1 if after two actions there exists attribute on the label
proc produces_attribute2 {action1 action2} {
global act_create act_modify act_modifyforget act_forget act_createforget
if {[produces_attribute1 $action2]} {
return 0
}
-# retuns value of the attribute produced by two actions
+# returns value of the attribute produced by two actions
proc produces_value {action1 action2} {
global act_modify act_createmodify act_none act_forgetcreate
if {$action2==$act_modify} {
set act_afternone [expr $act_none+1]
-# retuns 1 if after this action there exists attribute on the label
+# returns 1 if after this action there exists attribute on the label
proc produces_attribute1 {action} {
global act_create act_modify act_forgetcreate act_createmodify
if {$action==$act_create || $action==$act_createmodify || $action==$act_modify || $action==$act_forgetcreate} {
return 0
}
-# retuns 1 if after two actions there exists attribute on the label
+# returns 1 if after two actions there exists attribute on the label
proc produces_attribute2 {action1 action2} {
global act_create act_modify act_modifyforget act_forget act_createforget act_none act_forgetcreate act_undone
return 0
}
-# retuns value of the attribute produced by two actions
+# returns value of the attribute produced by two actions
proc produces_value {action1 action2} {
global act_modify act_createmodify act_none act_forgetcreate
if {$action2==$act_modify} {
set act_afternone [expr $act_none+1]
-# retuns 1 if after this action there exists attribute on the label
+# returns 1 if after this action there exists attribute on the label
proc produces_attribute1 {action} {
global act_create act_modify act_forgetcreate act_createmodify
if {$action==$act_create || $action==$act_createmodify || $action==$act_modify || $action==$act_forgetcreate} {
return 0
}
-# retuns 1 if after two actions there exists attribute on the label
+# returns 1 if after two actions there exists attribute on the label
proc produces_attribute2 {action1 action2} {
global act_create act_modify act_modifyforget act_forget act_createforget
if {[produces_attribute1 $action2]} {
return 0
}
-# retuns value of the attribute produced by two actions
+# returns value of the attribute produced by two actions
proc produces_value {action1 action2} {
global act_modify act_createmodify act_none act_forgetcreate
if {$action2==$act_modify} {
puts "OCC414"
puts "==========="
######################################################
-# Exception on attemp to save a document that contains empty TDataStd_Name
+# Exception on attempt to save a document that contains empty TDataStd_Name
######################################################
# Crash on NT during document saving (SAM1344-#2153)
######################################################
proc checkFile {filepath} {
if { [file exists $filepath] } {
- puts "File $filepath is ceated, OK"
+ puts "File $filepath is created, OK"
} else {
puts "Error: Could not find file $filepath"
}
puts "============"
puts ""
#######################################################################
-# QA comamnds don't work properly in new testing system
+# QA commands don't work properly in new testing system
#######################################################################
pload QAcommands
} else {
puts "SUCCESS: mybox is created"
if {[lsearch [directory] mybox] == -1} {
- puts "ERRROR: but it is absent among TCL variables"
+ puts "ERROR: but it is absent among TCL variables"
} else {
puts "SUCCESS: and it is present among TCL variables"
}
puts "OCC701"
puts "========"
######################################################
-# Resource_Manager class doen't return status of saving resources in a file.
+# Resource_Manager class doesn't return status of saving resources in a file.
######################################################
# Add method BuildPath to OSD_Directory
######################################################
puts "OCC701"
puts "========"
######################################################
-# Resource_Manager class doen't return status of saving resources in a file.
+# Resource_Manager class doesn't return status of saving resources in a file.
######################################################
# Add method BuildPath to OSD_Directory
######################################################
if { [string first "NbRaised: 100" $aResult] != -1 } {
puts "OK test case"
} else {
- puts "Error: expected to have 100 raised expections"
+ puts "Error: expected to have 100 raised exceptions"
}
}
puts "========"
puts ""
########################################################
-## If the the file pathname is empty, the Standard_Boolean OSD_FileNode::Exists()
+## If the file pathname is empty, the Standard_Boolean OSD_FileNode::Exists()
## raises an exception
########################################################
regexp {([-0-9.+eE]+)\s FACE} [statshape result] full nbFaces
if {$nbFaces != 5} {
- puts "OCC22 FAULTY: Initial shape was not splitted"
+ puts "OCC22 FAULTY: Initial shape was not split"
}
# Case B of the bug is reproduced. Result must be valid
if { [regexp "Exception" $info] != 0 } {
puts "Error : Exception was caught"
} else {
- puts "OK: COmmand wrong propery"
+ puts "OK: Command wrong property"
}
if { [regexp "Exception" $info] != 0 } {
puts "Error : Exception was caught"
} else {
- puts "OK: COmmand wrong propery"
+ puts "OK: Command wrong property"
}
explode w1 e
set Log [checkoverlapedges w1_1 w1_2 0.01 0.01]
-set Message "Edges is overlaped"
+set Message "Edges are overlapped"
if { [regexp ${Message} ${Log} ] == 1 } {
puts "Error : Adjacent perpendicular edges are detected as overlapped"
puts "========"
puts ""
#############################################
-# ShapeFix slighly corrupts the source face
+# ShapeFix slightly corrupts the source face
#############################################
binrestore [locate_data_file bug28768_f12g.brep] f12g
regexp {Number +of +labels +with +color +link += +([-0-9.+eE]+)} $xst full nbshcolor_Copy
if {$nbshcolor_Copy != 31} {
- puts "Error: incorect count of color links to shapes"
+ puts "Error: incorrect count of color links to shapes"
}
# test for #21593: compare number of triangles/nodes
# produced by BRepMesh for face with internal vertices
-# depening on value of InternalVerticesMode flag.
+# depending on value of InternalVerticesMode flag.
restore [locate_data_file bug21593_internal_vertices.brep] a
puts "========="
puts ""
###############################################
-# static class mehtods not exported in BrepMesh_GeomTool
+# static class methods not exported in BrepMesh_GeomTool
###############################################
pload QAcommands
addsweep w
########
-#does'nt work
+#doesn't work
buildsweep result -C -S
checkprops result -s 1979.9
puts " Mkoffset operation was made successfully"
}
-# Lenth of "profile" : 203.733802110964
+# Length of "profile" : 203.733802110964
renamevar result_1 result
puts "============"
puts ""
#######################################################################
-# Wrong result of boolen fuse
+# Wrong result of boolean fuse
#######################################################################
restore [locate_data_file OCC15943_p1.brep] b1
puts "========"
puts ""
###########################################################################
-## After analyze given face (file ff97.brep) using BRepCheck we recieve problem - "Bad Orientation of Subshape".
-## But we believe that this shape must be OK or we have to recieve more detail another reply from BRepCheck.
+## After analyze given face (file ff97.brep) using BRepCheck we receive problem - "Bad Orientation of Subshape".
+## But we believe that this shape must be OK or we have to receive more detail another reply from BRepCheck.
###########################################################################
restore [locate_data_file OCC174.brep] result
set BugNumber OCC21754
-# load shape and make face with natural bounds, to excluse possibility of
+# load shape and make face with natural bounds, to exclude possibility of
# lame excuse saying that it contains small edges
restore [locate_data_file OCC21754-bug_bsection_empty.brep] a
mksurface s a
puts "============"
puts ""
#######################################################################
-# Fuse between cylinder and sphere produces not vallid result
+# Fuse between cylinder and sphere produces not valid result
#######################################################################
set BugNumber OCC22306
puts "============"
puts ""
#######################################################################
-# Fuse between cylinder and sphere produces not vallid result
+# Fuse between cylinder and sphere produces not valid result
#######################################################################
set BugNumber OCC22306
puts "============"
puts ""
#######################################################################
-# Fuse between cylinder and sphere produces not vallid result
+# Fuse between cylinder and sphere produces not valid result
#######################################################################
set BugNumber OCC22306
puts "============"
puts ""
#######################################################################
-# Fuse between cylinder and sphere produces not vallid result
+# Fuse between cylinder and sphere produces not valid result
#######################################################################
set BugNumber OCC22306
puts "============"
puts ""
#######################################################################
-# Fuse between cylinder and sphere produces not vallid result
+# Fuse between cylinder and sphere produces not valid result
#######################################################################
set BugNumber OCC22306
puts "================"
puts ""
#######################################################################################
-# Regression in vizualization for b-spline surface
+# Regression in visualization for b-spline surface
######################################################################################
set BugNumber OCC22631
puts "============"
puts ""
#######################################################################
-# Boolean opeation Fuse fails.
+# Boolean operation Fuse fails.
#######################################################################
set BugNumber OCC22790
puts "============"
puts ""
#######################################################################
-# Boolean opeation Section fails
+# Boolean operation Section fails
#######################################################################
set BugNumber OCC22814
puts "============"
puts ""
#############################################################################
-# Possible regression is tesselation algorithm of OCCT 6.5.2
+# Possible regression is tessellation algorithm of OCCT 6.5.2
#############################################################################
set BugNumber OCC22893
puts "==========="
puts ""
#######################################################################
-# Regression with OCCT652 on Windows. DRAWEXE craches during featprism
+# Regression with OCCT652 on Windows. DRAWEXE crashes during featprism
#######################################################################
set BugNumber OCC22986
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "$a <-> $b: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: $a and $b are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: $a and $b are overlapped"
}
}
}
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "$a <-> $b: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: $a and $b are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: $a and $b are overlapped"
}
}
}
puts "========================"
puts ""
#################################################################
-## Attached face looks as unclosed but command "checkshape" concludes that it is valid. Inspite of that,
-## mesh for shading is not creating on this face.
+## Attached face looks as unclosed but command "checkshape" concludes that it is valid.
+## In spite of that, mesh for shading is not being created on this face.
#################################################################
restore [locate_data_file OCC292.brep] result
puts "================"
puts ""
############################################
-## Command sameparametr in DRAW hangs on attached edge.
+## Command sameparameter in DRAW hangs on attached edge.
############################################
restore [locate_data_file OCC345.brep] result
puts "======="
puts ""
####################################
-## Draw hungs up during performing bfuse operation
+## Draw hangs up during performing bfuse operation
####################################
cpulimit 3000
puts "============"
puts ""
######################################################
-# gp_Mat's constructors incompletely initilize memory
+# gp_Mat's constructors incompletely initialize memory
######################################################
set BugNumber OCC22595
puts "========================"
-puts " OCC600: Result of BOPCOMMON operation is unclosed shape inspite of source solids are valid"
+puts " OCC600: Result of BOPCOMMON operation is unclosed shape in spite of source solids are valid"
puts "========================"
cpulimit 200
puts "Faulty ${BugNumber} : thrusections is wrong"
}
-# straighforward hollowing will fail due to problems in the algorithm
+# straightforward hollowing will fail due to problems in the algorithm
explode resthru f
if { [catch { offsetshape result resthru -0.5 resthru_6 resthru_7 } catch_result] } {
puts "========================"
puts ""
###############################################################################
-## Created filler looks strange (see attached picture) inspite of checkshapes told about correct source and result shapes.
+## Created filler looks strange (see attached picture) in spite of checkshapes told about correct source and result shapes.
###############################################################################
pload QAcommands
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
restore [locate_data_file OCC6272_bridge2.brep] a1
#
-# a1 is compound. It containes a_3, a_5, a_1, a_2, a_4, a_6 solids
+# a1 is compound. It contains a_3, a_5, a_1, a_2, a_4, a_6 solids
#
explode a1 so
puts "========"
puts ""
#########################################################
-## Exeption is raised in DRAW during building draft with help command "depouille"
+## Exception is raised in DRAW during building draft with help command "depouille"
## on face in the attached shape.
#########################################################
puts "========"
puts ""
#############################################
-# Negative offset parameter leads to positive offset and vise
+# Negative offset parameter leads to positive offset and vice-
# versa. Result of the offset represent an edge instead of wire.
#############################################
puts "======="
puts ""
############################################
-## Command sameparametr in DRAW hangs on attached edge.
+## Command sameparameter in DRAW hangs on attached edge.
############################################
restore [locate_data_file OCC767.brep] result
puts "========="
puts ""
#####################################################
-## The offset algorithm produced invalid result when offseting an attached face
+## The offset algorithm produced invalid result when offsetting an attached face
#####################################################
pload QAcommands
puts "============"
puts ""
##########################################################
-## The command "section" in Draw gives exception "attempt to access to null objec "
+## The command "section" in Draw gives exception "attempt to access to null object "
##########################################################
restore [locate_data_file BUC60877_lh.brep] sh
puts "============"
puts ""
######################################################
-# exeption is raised during the vprops in DRAW on the attached shape
+# exception is raised during the vprops in DRAW on the attached shape
######################################################
set BugNumber OCC8228
puts "================"
puts ""
#######################################################################
-# New auxilary method concatenating a wire into an edge based on C0-continuous curve.
+# New auxiliary method concatenating a wire into an edge based on C0-continuous curve.
#######################################################################
restore [locate_data_file bug23845_profil_0a.brep] a
vertex vf1 x1 y1 z1
# -- variant: replace curve by arc with start at x0,y0,z0 and end at x1,y1,z1,
-# -- such that tanget at start point is along Y
+# -- such that tangent at start point is along Y
#dset Rflute ((x1-x0)*(x1-x0)+(y1-y0)*(y1-y0))/(2*(x1-x0))
#circle aflute x0+Rflute y0 0 0 0 1 Rflute
#mkedge sflute_1 aflute vf0 vf1
puts "================"
puts ""
#######################################################################################
-# Alien subshapes occured in result of 'bopcheck' operation
+# Alien subshapes occurred in result of 'bopcheck' operation
######################################################################################
cpulimit 2000
puts "========="
puts ""
###############################################
-# algorith BRepOffset_MakeOffset(...) produces wrong result for join type Intersection
+# algorithm BRepOffset_MakeOffset(...) produces wrong result for join type Intersection
###############################################
restore [locate_data_file bug25729_source_shape.brep] s
puts "============"
puts ""
######################################################
-# Using BRepFill_OffsetWire withs wires containing arc edges throws exception "Standard_NullValue"
+# Using BRepFill_OffsetWire with wires containing arc edges throws exception "Standard_NullValue"
######################################################
restore [locate_data_file bug25220.brep] a
restore [locate_data_file bug26687_w.brep] w
#It is impossible to create a plane there is no any surface
-#which every edge has its p-cuve in.
+#which every edge has its p-curve in.
mkplane f w
puts "============"
puts ""
#############################################################################################
-## Big tolerance value of the edge in the result of Genral Fuse operation
+## Big tolerance value of the edge in the result of General Fuse operation
#############################################################################################
restore [locate_data_file bug26718_w6_b1.brep] b1
puts " OCC26848"
puts " OCC600"
puts "========================"
-## Result of BOPCOMMON operation is unclosed shape inspite of source solids are valid
+## Result of BOPCOMMON operation is unclosed shape in spite of source solids are valid
## Result of BO depends on arguments order
############################################################
cpulimit 5000
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "result_$ic <-> result_$ip: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: result_$ic and result_$ip are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: result_$ic and result_$ip are overlapped"
}
}
clear
don s1 s2 result*
checkview -screenshot -2d -path ${imagedir}/${test_image}_${CheckID}.png
-}
\ No newline at end of file
+}
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "result_$ic <-> result_$ip: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: result_$ic and result_$ip are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: result_$ic and result_$ip are overlapped"
}
}
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "result_$ic <-> result_$ip: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: result_$ic and result_$ip are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: result_$ic and result_$ip are overlapped"
}
}
puts "============"
puts ""
######################################################
-# BRepLib::EnsureNormalConsistency() raises exception in case of asynchronious PolygonOnTriangulation problem
+# BRepLib::EnsureNormalConsistency() raises exception in case of asynchronous PolygonOnTriangulation problem
######################################################
restore [locate_data_file bug27391_Ficomirrors_ExportBinMoldflow.brep] a
appro c2 16 ee2
appro c3 16 ee3
-#Make a surface by approximation passing throught a set of curves
+#Make a surface by approximation passing through a set of curves
# and create a face
appsurf s1 c1 c2 c3
mkface f1 s1
-#Make a surface by approximation passing throught a set of ellipse
+#Make a surface by approximation passing through a set of ellipse
# and create a face
appsurf s2 ee1 ee2 ee3
mkface f2 s2
circle c4 100 0 0 1 0 0 20
circle c5 150 0 0 1 0 0 10
-#Make a surface by approximation passing throught a set of circles
+#Make a surface by approximation passing through a set of circles
# and create a face
appsurf s3 c1 c2 c3 c4 c5
mkface f3 s3
# The shape so1 is valid
#Step 4: Create a Solid for fuselage
-# We will extract the edge from the face f3, and use them to buid faces, the edge will be shared and we
+# We will extract the edge from the face f3, and use them to build faces, the edge will be shared and we
# can rebuild a sh and a solid with the basic and fast method
nexplode f3 e
checknbshapes rrr -face 5 -wire 5 -shell 1 -solid 1
checkprops rrr -s 57448.9 -v 664969
-# Step 6: Create the othe wing using copy and rotation
+# Step 6: Create the other wing using copy and rotation
tcopy so1 so3
trotate so3 0 0 0 1 0 0 180
# Result of operation should be two shapes (checking)
set oper_result [explode r]
if {[llength $oper_result] != 2} {
- puts "ERRROR: Result of BrepAlgoAPI_Cut is unexpected"
+ puts "ERROR: Result of BrepAlgoAPI_Cut is unexpected"
}
# Algorithmic check of r_1 shape
# Result of operation should be two shapes (checking)
set oper_result [explode r]
if {[llength $oper_result] != 2} {
- puts "ERRROR: Result of BrepAlgoAPI_Cut is unexpected"
+ puts "ERROR: Result of BrepAlgoAPI_Cut is unexpected"
}
# Algorithmic check of r_2 shape
puts "========"
puts ""
################################################################
-# BRepBuilderAPI_MakeFace adds wire with aribitary orientation
+# BRepBuilderAPI_MakeFace adds wire with arbitrary orientation
################################################################
polyline p 9.08 8.62 3.75 1.87 3.04 9. 4.26 1.37 -0.08 9.08 8.62 3.75
puts "========"
puts ""
################################################################
-# BRepBuilderAPI_MakeFace adds wire with aribitary orientation
+# BRepBuilderAPI_MakeFace adds wire with arbitrary orientation
################################################################
polyline p -1.15 3.42 1.95 4.54 3.13 1.36 2.97 -3.14 2.08 -1.15 3.42 1.95
puts "========"
puts ""
################################################################
-# BRepBuilderAPI_MakeFace adds wire with aribitary orientation
+# BRepBuilderAPI_MakeFace adds wire with arbitrary orientation
################################################################
polyline p -4.62 0.1 0.75 -4.12 4.64 -2.91 -1.55 -1.07 4.48 -4.62 0.1 0.75
puts "========"
puts ""
################################################################
-# BRepBuilderAPI_MakeFace adds wire with aribitary orientation
+# BRepBuilderAPI_MakeFace adds wire with arbitrary orientation
################################################################
polyline p -2.92 -4.7 -2.87 4.73 1.75 1.76 3.14 -1.23 2.74 -2.92 -4.7 -2.87
puts "========"
puts ""
################################################################
-# BRepBuilderAPI_MakeFace adds wire with aribitary orientation
+# BRepBuilderAPI_MakeFace adds wire with arbitrary orientation
################################################################
polyline p -4.05 3.84 0.17 4.22 3.55 3.19 -1.32 -1.44 -1.57 -4.05 3.84 0.17
puts "========"
puts ""
################################################################
-# BRepBuilderAPI_MakeFace adds wire with aribitary orientation
+# BRepBuilderAPI_MakeFace adds wire with arbitrary orientation
################################################################
polyline p -2.36 -1.62 0.17 3.26 -1.05 -3.8 2.75 -4.01 4.95 -2.36 -1.62 0.17
puts "========"
puts ""
################################################################
-# BRepBuilderAPI_MakeFace adds wire with aribitary orientation
+# BRepBuilderAPI_MakeFace adds wire with arbitrary orientation
################################################################
polyline p 4.72 2.03 -2.52 -4.78 1.89 -3.82 -1.42 4.56 1.55 4.72 2.03 -2.52
puts "========"
puts ""
################################################################
-# BRepBuilderAPI_MakeFace adds wire with aribitary orientation
+# BRepBuilderAPI_MakeFace adds wire with arbitrary orientation
################################################################
polyline p 2.02 -1.4 -3.75 -2.93 -1.87 1.72 -5. -0.18 0.39 2.02 -1.4 -3.75
puts "========"
puts ""
################################################################
-# BRepBuilderAPI_MakeFace adds wire with aribitary orientation
+# BRepBuilderAPI_MakeFace adds wire with arbitrary orientation
################################################################
polyline p 1.21 0.16 4.2 3.12 4.16 0.93 -2.33 -2.55 2.41 1.21 0.16 4.2
#Get the length of projection
set Proj_Len [lindex [string trim [length ext_1]] 4]
-#Get maximim value of tolerance for the EDGE
+#Get maximum value of tolerance for the EDGE
set MaxTol_Edge [lindex [string trim [tolerance b_1]] 11]
set MaxTol_Edge [string trim [string range $MaxTol_Edge [expr {[string first "=" $MaxTol_Edge] + 1}] [expr {[string length $MaxTol_Edge] - 1}]]]
puts "========"
puts ""
##################################
-# Cut produces unexcpected shape
+# Cut produces unexpected shape
##################################
restore [locate_data_file bug27948_a.brep] a
# Check that the normal directions have been preserved.
# All faces from input shapes which could pass into result have normals
-# directed stricly to the top (0, 0, 1). So, it is necessary to check
+# directed strictly to the top (0, 0, 1). So, it is necessary to check
# that all faces from the result have the same normal direction.
foreach f [explode result f] {
# Check that the normal directions have been preserved.
# Both input faces faces have normals
-# directed stricly to the top (0, 0, 1). So, it is necessary to check
+# directed strictly to the top (0, 0, 1). So, it is necessary to check
# that the reuslting face has the same normal direction.
if {![regexp "(0, 0, 100)" [normals result -length 100 -print]]} {
puts "========="
puts ""
#########################################################
-## Checkshape says that face is valid but it inludes selfintersecting wire.
+## Checkshape says that face is valid but it includes selfintersecting wire.
#########################################################
restore [locate_data_file buc61006.brep] result
#################################################################
## In time document with "1-exhaust.brep" imported shape saving exception "Access Violation"
## raises because of wrong PColgp_HArray1 allocation.
-## StandardCSFDB_Allocate badly allocates memory blocks: bad address value retuned.
+## StandardCSFDB_Allocate badly allocates memory blocks: bad address value returned.
#################################################################
restore [locate_data_file OCC187_from_bug_description.brep] result
puts "================"
puts ""
#######################################################################################
-# IGES transaltor does not produce any shape
+# IGES translator does not produce any shape
######################################################################################
set BugNumber OCC22165
puts "============"
puts ""
#######################################################################
-# Exception in LocOpe_SplitShape algoritm
+# Exception in LocOpe_SplitShape algorithm
#######################################################################
restore [locate_data_file OCC22194-sh.brep] s
puts "ATTENTION! TEST IN DEBUG MODE!"
puts ""
#######################################################################
-# Use of uninitializaed variables in HLRBRep_Curve::UpdateMinMax in debug mode
+# Use of uninitialized variables in HLRBRep_Curve::UpdateMinMax in debug mode
#######################################################################
catch { pload XDE }
puts "========"
##############################################################
-##Incorrect result with missing faces after a fuse operation beetween the box and the wedge.
+##Incorrect result with missing faces after a fuse operation between the box and the wedge.
###############################################################
restore [locate_data_file OCC227a.brep] a
puts "========"
##############################################################
-##Incorrect result with missing faces after a fuse operation beetween the box and the wedge.
+##Incorrect result with missing faces after a fuse operation between the box and the wedge.
###############################################################
restore [locate_data_file OCC227a.brep] a
puts ""
#############################################
-##Uncorrect work DRAW command "proj" in version dev
+##Incorrect work DRAW command "proj" in version dev
## and receive such result:
## in dev : ext_1 ext_2 ext_3
## in C40 : ext_1 ext_2 ext_3 ext_4
######################################################
## Exception while segment operation on periodic BSpline curve.
-## More over it seems that command segment in Draw doesnot work.
+## More over it seems that command segment in Draw does not work.
######################################################
restore [locate_data_file OCC253.draw] result
fsameparameter a
explode a E
-# Verify only a_1 and a_2 eges becouse a_3 had 3d curve before call of build3d command
+# Verify only a_1 and a_2 eges because a_3 had 3d curve before call of build3d command
set toler1 [maxtolerance a_1]
regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $toler1 full MaxEdgeTolerance1
puts ""
########################################################
-#### Exeption is raised in DRAW during command "restore" on attahed shape.
+#### Exception is raised in DRAW during command "restore" on attahed shape.
########################################################
restore [locate_data_file OCC313.brep] result
puts "========================"
puts ""
##################################################
-## Checkshape says that face is valid but it inludes selfintersecting wire
+## Checkshape says that face is valid but it includes selfintersecting wire
##################################################
restore [locate_data_file buc61006.brep] result
puts "========"
-puts "OCC428: Excep-tion during vizualization on attached shape in application."
+puts "OCC428: Excep-tion during visualization on attached shape in application."
puts "SAM1414: Excep-tion is raised in the package StdPrs."
puts "========"
# remove small edges from the shape
fixsmalledges a a 0.002
-# explode to get two arguemnts
+# explode to get two arguments
explode a
# use fuzzy value to treat misalignment of the arguments
set dump [dump c2d]
# read dump of old curve
set olddump [read [open [locate_data_file OCC515_DUMP]]]
- # if the the dumps is equal this bug is still exist
+ # if the dumps are equal this bug still exists
if { $dump == $olddump } {
puts "OCC515 FAULTY"
} else {
- puts "OCC515 WARNING: Dumps of old and new curve are different, probably bug is still exist"
+ puts "OCC515 WARNING: Dumps of old and new curve are different, probably bug still exists"
}
}
set dump [dump result]
# read dump of old curve
set olddump [read [open [locate_data_file OCC542_DUMP]]]
- # if the the dumps is equal this bug is still exist
+ # if the dumps are equal this bug still exists
if { $dump == $olddump } {
puts "OCC542 Faulty"
} else {
- puts "OCC542 WARNING: Dumps of old and new curve are different, probably bug is still exist"
+ puts "OCC542 WARNING: Dumps of old and new curve are different, probably bug still exists"
}
}
puts "================"
puts ""
#######################################################################################
-# Regression in vizualization
+# Regression in visualization
#######################################################################################
set BugNumber OCC6412
puts ""
###########################################################
## The matrix of inertia for sphere computed incorrectly.
-## In the secod case the not diagonal elements of the inertia matrix are not close to zero.
+## In the second case the not diagonal elements of the inertia matrix are not close to zero.
###########################################################
psphere result 10 10 10
puts "========"
puts ""
############################################################
-## Exeption is raised in DRAW during building draft with help command "depouille"
+## Exception is raised in DRAW during building draft with help command "depouille"
## on face in the attached shape.
## The source code of application is also attached and should be checked.
############################################################
regexp {Mass +: +([-0-9.+eE]+)} [vprops sh2] full l2
if { [expr abs([expr $l1 - $vol1_exp])] > 0.00999} {
- puts "Error : Volume of OCC76-1.brep is calculated wrongly becuase $vol1_exp value must be but $l1 is"
+ puts "Error : Volume of OCC76-1.brep is calculated wrongly because $vol1_exp value must be but $l1 is"
} else {
puts " Volume of OCC76-1.brep is right calculated"
}
puts ""
#######################################################################
# Boolean fuse fails
-# -- test #2: in rotated co-ordinates --
+# -- test #2: in rotated coordinates --
#######################################################################
puts "Load first shape ..."
puts ""
##############################################################
# Incorrect result of the normal projection algorithm
-# Exception during the exectuion
+# Exception during the execution
##############################################################
restore [locate_data_file bug27299_1.brep] aShape
puts ""
##############################################################
# Incorrect result of the normal projection algorithm
-# Exception during the exectuion
+# Exception during the execution
##############################################################
restore [locate_data_file bug27299_1.brep] aShape
puts ""
##############################################################
# Incorrect result of the normal projection algorithm
-# Exception during the exectuion
+# Exception during the execution
##############################################################
restore [locate_data_file bug27299_2.brep] aShape
puts "========================"
puts ""
#########################################################
-## Result of BOPFUSE operation is unclosed shape inspite of source solids are valid
+## Result of BOPFUSE operation is unclosed shape in spite of source solids are valid
#########################################################
cpulimit 2000
# test data (expected values of test execution).
# The procedure is:
# - load specified data files
-# - check validity of result shape, vizualize building compartments,
+# - check validity of result shape, visualize building compartments,
########################################################################
puts "============"
puts ""
######################################################
-# Exeption is raised in the application during reading attached IGES file.
+# Exception is raised in the application during reading attached IGES file.
######################################################
set list [stepread [locate_data_file OCC2368.stp] a *]
puts "============"
puts ""
#####################################################
-# STEP read failes to read unbound advanced_face
+# STEP read fails to read unbound advanced_face
#####################################################
ReadStep D [locate_data_file bug24283_spheres.stp]
puts "============"
puts ""
#####################################################
-# STEP read failes to read unbound advanced_face
+# STEP read fails to read unbound advanced_face
#####################################################
stepread [locate_data_file bug24283_spheres.stp] a *
puts "# ====================================================================="
-puts "# 0026925: Data Exchange - Execeptions can be raised if assembly is empty"
+puts "# 0026925: Data Exchange - Exceptions can be raised if assembly is empty"
puts "# ====================================================================="
puts ""
puts "================"
puts ""
########################################################
-## DRAW hungs up at the attempt to restore solid previously saved in STEP format
+## DRAW hangs up at the attempt to restore solid previously saved in STEP format
########################################################
restore [locate_data_file OCC630.brep] a1
puts "============"
puts ""
#######################################################################
-# Exeption is raised during the ReadStep in DRAW on the attached shape
+# Exception is raised during the ReadStep in DRAW on the attached shape
#######################################################################
set BugNumber OCC8229
puts "=========="
#############################################################################
-## There is wrong tolerance after reading of the model in optimaze mode (C30). Retrive entity number 2139 from file
+## There is wrong tolerance after reading of the model in optimaze mode (C30). Retrieve entity number 2139 from file
## "bm4_db_punch_a.stp" and will obtaine tolerance. It is very big and isolains extend from entity.
#############################################################################
##################################################################
##DESCRIPTION: It is impossible to nominate "sheding" mode in 3D-viewer for the some shapes in
-## C30 (SUN station), which were stored in "IGES" format previousl and then were retrieved again
+## C30 (SUN station), which were stored in "IGES" format previously and then were retrieved again
## into "BREP" format.
##################################################################
###vselect $x_coord $y_coord 1
meshhidesel m
-puts "\nSelected elemement is hidden"
+puts "\nSelected element is hidden"
checkcolor $x_coord $y_coord 0 0 0.36
checkcolor ${X_02} ${Y_02} 0.8 0.8 0.8
-# Hilight face
+# Highlight face
vmoveto ${X_01} ${Y_01}
# Check face color
puts "================"
puts ""
#######################################################################################
-# Vizualisation in 3d viewer in Draw hungs up
+# Visualisation in 3d viewer in Draw hangs up
#######################################################################################
restore [locate_data_file bug17126_ff_1285_viz.brep] a
puts "============"
puts ""
######################################################
-# Attached shape is not vizualized in the shaded mode
+# Attached shape is not visualized in the shaded mode
######################################################
set BugNumber OCC21578
puts "============"
puts ""
#######################################################################
-# Attached face hangs during vizualization in OCC Viewer 3D .
+# Attached face hangs during visualization in OCC Viewer 3D .
#######################################################################
set BugNumber OCC21798
puts "It is not problem of meshing."
puts "It is pure problem of shading geometrically coinciding faces with different"
-puts "triangulation. If we create analitical cylinder and box by such way that plane"
+puts "triangulation. If we create analytical cylinder and box by such way that plane"
puts "faces of cylinder and two faces of box are coinceded, we will have the same"
puts "result: fractional shading of coinciding faces.\n"
puts "========"
puts ""
############################################
-## Numeric Error occures in V2d_View::WindowFit() , Magnify()
+## Numeric Error occurs in V2d_View::WindowFit() , Magnify()
############################################
point p1 0 10
puts "========"
puts ""
############################################
-## Numeric Error occures in V2d_View::WindowFit() , Magnify()
+## Numeric Error occurs in V2d_View::WindowFit() , Magnify()
############################################
point p1 0 10
# This test is modified test cdl/934/C2
#
-# this test performs automatical test of primitives array objects by pixel checking
+# this test performs automatic test of primitives array objects by pixel checking
# this test ALSO DUMPS two result images (the primitives on the images should have
# same contours, WIREFRAME OBJECTS ARE IN YELLOW-RED COLORS, SHADED OBJECTS ARE
# BLUE-GREEN COLORS)
set aTitle "stereoL"
vdump $imagedir/${casename}_${aTitle}.png -buffer rgb -width 512 -height 512 -stereo L
-# test context stereo mode swicthing
+# test context stereo mode switching
# if not supported by hardware it must not crash
vstereo 1
vclose all
puts "============"
puts ""
#######################################################################
-# Invalid hilight of AIS dimension line in local selection
+# Invalid highlight of AIS dimension line in local selection
#######################################################################
vfont add [locate_data_file DejaVuSans.ttf] SansFont
if {$i == $j} {
set res [checkcolor $check_x $check_y 0 1 1]
if { $res != 1 } {
- puts "Error : No local hilighting of $name at pick coordinates ($pick_x, $pick_y) check coordinates ($check_x, $check_y)"
+ puts "Error : No local highlighting of $name at pick coordinates ($pick_x, $pick_y) check coordinates ($check_x, $check_y)"
}
} else {
set res [checkcolor $check_x $check_y 0 0 0]
if { $res != 1 } {
- puts "Error : Unwanted hilighting of $name at pick coordinates ($pick_x, $pick_y) check coordinates ($check_x, $check_y)"
+ puts "Error : Unwanted highlighting of $name at pick coordinates ($pick_x, $pick_y) check coordinates ($check_x, $check_y)"
}
}
}
puts ""
#######################################################################
# The selected subshape does not have topological relationship
-# with orginal shape in OCC680
+# with original shape in OCC680
#######################################################################
pload ALL
vmoveto 100 100
vdump $imagedir/${casename}_h_pres.png
-# Activate the local selection by edges and hilight small circle edge.
+# Activate the local selection by edges and highlight small circle edge.
# It's discretization should coincide with discretization of whole shape hiligting.
vselmode p -set EDGE 1
vmoveto 130 80
puts "========"
-puts "0025775: Default Gradient Backgound in V3d_Viewer has no effect in new created V3d_View"
+puts "0025775: Default Gradient Background in V3d_Viewer has no effect in new created V3d_View"
puts "========"
puts ""
##########################################################################################
puts "AIS_InteractiveContext::Display performance regression"
-# To measure performance downgrade, the time elapsed should be greated than on previous version
+# To measure performance downgrade, the time elapsed should be greater than on previous version
##########################################################################################
pload VISUALIZATION
vdump $imagedir/${casename}_normal.png
set aColorNorm [vreadpixel 200 250 rgb name]
-if { "$aColorNorm" != "GRAY14" } { puts "Error: Expected color of capping plane is GRAY14 (normal presentation). Actial is $aColorNorm" }
+if { "$aColorNorm" != "GRAY14" } { puts "Error: Expected color of capping plane is GRAY14 (normal presentation). Actual is $aColorNorm" }
vclear
vdump $imagedir/${casename}_connected.png
set aColorConn [vreadpixel 200 250 rgb name]
-if { "$aColorConn" != "GRAY14" } { puts "Error: Expected color of capping plane is GRAY14 (connected presentation). Actial is $aColorConn" }
+if { "$aColorConn" != "GRAY14" } { puts "Error: Expected color of capping plane is GRAY14 (connected presentation). Actual is $aColorConn" }
vfit
vselmode 4 1
vmoveto 250 250
-if {[vreadpixel 350 140 rgb name] != "BLACK"} { puts "ERROR: wrong inital location" }
+if {[vreadpixel 350 140 rgb name] != "BLACK"} { puts "ERROR: wrong initial location" }
vsetlocation b 0.5 0 0
if {[vreadpixel 350 140 rgb name] != "CYAN2"} { puts "ERROR: the transformation was not applied to highlight structure" }
set aSelectedFace [string trim [lindex [split [vstate] "\n"] 1] ]
if {$aSelectedFace != "Face #1"} {
puts "ERROR: wrong face is selected."
- puts "Actually seleced face: $aSelectedFace"
+ puts "Actually selected face: $aSelectedFace"
puts $aTestInfo
}
vaxo
vfit
-# Check that box was't resized in small view
+# Check that box wasn't resized in small view
if {[vreadpixel 165 200 -rgb -name] != "DARKGOLDENROD"} { puts "ERROR: zoom persistent box is resized on view sizes changed!" }
vdump $imagedir/${casename}_2.png
puts "Visualization, AIS_Dimension - add possibility to set custom text value"
puts "========"
-# Test case creates three lenght dimensions where value is set as real,
+# Test case creates three length dimensions where value is set as real,
# as text and is reset to auto value state.
pload MODELING VISUALIZATION
puts "========"
-puts "Capping plane perserving material"
+puts "Capping plane preserving material"
puts "========"
set aHatch [locate_data_file images/hatch_1.png]
puts "========"
puts "OCC280"
-puts "2. Hilighting the object, by moving mouse cursor on it does not hilight the object"
+puts "2. Highlighting the object, by moving mouse cursor on it does not highlight the object"
puts "========"
vinit
vlocation b -reset
vmoveto 110 110
vreadpixel 110 110 rgb name
-if { "[vreadpixel 110 110 rgb name]" != "CYAN2" } { puts "Error: resetted shape is not selected!" }
+if { "[vreadpixel 110 110 rgb name]" != "CYAN2" } { puts "Error: reset shape is not selected!" }
vaspects c -setBackFaceColor RED
vfit
vdump $imagedir/${casename}_mirrev.png
-if { [vreadpixel 195 220 rgb name] == "BLUE2" } { puts "Error: revered mirrored box should NOT look inside out" }
+if { [vreadpixel 195 220 rgb name] == "BLUE2" } { puts "Error: reversed mirrored box should NOT look inside out" }
# use clippling plane to have two objects visible (the second object is partially visible)
vclipplane change pln equation -1 0 0 5
-# apply inital selection rectangle, expecting selection of only fully visible object
+# apply initial selection rectangle, expecting selection of only fully visible object
vselect 40 100 370 300
if {[vnbselected] != 1} {
- puts "ERROR: Bad numer of selected objects after clippling plane set on view!"
+ puts "ERROR: Bad number of selected objects after clippling plane set on view!"
}
-# apply inital selection rectangle, expecting selection of partially included object also
+# apply initial selection rectangle, expecting selection of partially included object also
vselect 40 100 370 300 -allowoverlap 1
if {[vnbselected] != 2} {
- puts "ERROR: Bad numer of selected objects after clippling plane set on view with allow overlap selection!"
+ puts "ERROR: Bad number of selected objects after clippling plane set on view with allow overlap selection!"
}
vfit
# 1.
-# Set composition filter AND to aplly VERTEX and EDGE filter
+# Set composition filter AND to apply VERTEX and EDGE filter
# the vertex and the edge isn't selected
vselfilter -contextfilter AND -type VERTEX -secondtype EDGE
vchangeselected v
# 3.
-# Set composition filter OR to aplly VERTEX and EDGE filter
+# Set composition filter OR to apply VERTEX and EDGE filter
# the vertex and the edge is selected
vselfilter -contextfilter OR -type VERTEX -secondtype EDGE
puts ""
########################################
-## Exception is raised during vizualization attached shape.
+## Exception is raised during visualization attached shape.
########################################
cpulimit 3000
puts "Transparency2 = ${Transparency2}"
set DefaultAISTransparency 0
if { ${Transparency1} != ${DefaultAISTransparency} } {
- puts "Default transparency is worng: Error"
+ puts "Default transparency is wrong: Error"
set status 1
}
puts "============"
puts ""
#######################################################################
-# Increasiong of perfomance of fixes applied during translation of STEP files.
+# Increasiong of performance of fixes applied during translation of STEP files.
#######################################################################
set BugNumber OCC22826
puts "TODO OCC24156 MacOS: Error: unsupported locale specification"
# Test for issue #22898 and other functionality that can be affected by locale.
-# Just run multiple conversions of the shape to and from diferent formats and
+# Just run multiple conversions of the shape to and from different formats and
# check that the result is good shape with expected area
if { [checkplatform -linux] } {
puts "============"
puts ""
##################################################################
-# Generic color is overriden in STEPCAFControl_Writer::WriteColors
+# Generic color is overridden in STEPCAFControl_Writer::WriteColors
##################################################################
set BugNumber OCC22982
puts "========================"
puts ""
#######################################################################
-# Request of a new feature fot units management during step import
+# Request of a new feature for units management during step import
#######################################################################
set BugNumber OCC23009
puts "============"
puts ""
######################################################
-# Exeption during reading STEP file in Test Harness
+# Exception during reading STEP file in Test Harness
######################################################
pload DCAF
puts "============"
puts ""
#################################################################
-# XCAF document shoud store names for subfigures from IGES files
+# XCAF document should store names for subfigures from IGES files
#################################################################
ReadIges D [locate_data_file bug23895_test.igs]
puts "Name_4='${Name_4}'"
if (![regexp {NAUO1} ${Name_1}]) {
- puts "Error: Name of entitie ${label_1} is bad"
+ puts "Error: Name of entity ${label_1} is bad"
} else {
- puts "OK: Name of entitie ${label_1} is good"
+ puts "OK: Name of entity ${label_1} is good"
}
if (![regexp {NAUO2} ${Name_2}]) {
- puts "Error: Name of entitie ${label_2} is bad"
+ puts "Error: Name of entity ${label_2} is bad"
} else {
- puts "OK: Name of entitie ${label_2} is good"
+ puts "OK: Name of entity ${label_2} is good"
}
if (![regexp {NAUO3} ${Name_3}]) {
- puts "Error: Name of entitie ${label_3} is bad"
+ puts "Error: Name of entity ${label_3} is bad"
} else {
- puts "OK: Name of entitie ${label_3} is good"
+ puts "OK: Name of entity ${label_3} is good"
}
if (![regexp {NAUO4} ${Name_4}]) {
- puts "Error: Name of entitie ${label_4} is bad"
+ puts "Error: Name of entity ${label_4} is bad"
} else {
- puts "OK: Name of entitie ${label_4} is good"
+ puts "OK: Name of entity ${label_4} is good"
}
if {[llength $err_compare_ref] > 0} {
puts "Error : differences with reference data found :\n$err_compare_ref"
} else {
- puts "Comparision of current result with reference data - OK\n"
+ puts "Comparison of current result with reference data - OK\n"
}
puts "TEST COMPLETED"
\ No newline at end of file
puts "========================"
puts ""
####################################
-## Big tolerance after commmand fixshape r a 1.e-7 1
+## Big tolerance after command fixshape r a 1.e-7 1
####################################
cpulimit 3000
set index1 [lsearch -exact ${dumpList} Circle]
if {${index1} == -1} {
- puts "Faulty ${BugNumber} : there is not a cirle in source file"
+ puts "Faulty ${BugNumber} : there is not a circle in source file"
incr status
} else {
- puts "OK ${BugNumber} : there is a cirle in source file"
+ puts "OK ${BugNumber} : there is a circle in source file"
set Center_X_1 [lindex ${dumpList} [expr ${index1} + 5]]
set Center_Y_1 [lindex ${dumpList} [expr ${index1} + 7]]
set Center_Z_1 [lindex ${dumpList} [expr ${index1} + 9]]
set index2 [lsearch -exact ${dumpList2} Circle]
if {${index2} == -1} {
- puts "Faulty ${BugNumber} : there is not a cirle in writing file"
+ puts "Faulty ${BugNumber} : there is not a circle in writing file"
incr status
} else {
- puts "OK ${BugNumber} : there is a cirle in writing file"
+ puts "OK ${BugNumber} : there is a circle in writing file"
set Center_X_2 [lindex ${dumpList2} [expr ${index2} + 5]]
set Center_Y_2 [lindex ${dumpList2} [expr ${index2} + 7]]
set Center_Z_2 [lindex ${dumpList2} [expr ${index2} + 9]]
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
ComputeFun D $F2; ## compute the function
GetShape D $F2:2 Box2; ## check result
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#2
NewCommand D
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
ComputeFun D $F2; ## compute the function
GetShape D $F2:2 Box2; ## check result
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#2
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
ComputeFun D $Cyl:1
GetShape D $Cyl:1:2 CylS
-#3 Transalte Cylinder
+#3 Translate Cylinder
NewCommand D
set FTr1 [PTranslateDXYZ D $Cyl 100 0 0]
ComputeFun D $FTr1
ComputeFun D $B1:1; ## compute box1 function
GetShape D $B1:1:2 Box1; ## check result
whatis Box1
-# referes to result NS
+# refers to result NS
GetReference D $B1; ## check is reference set
#2 - create box using more flexible set of commands
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
ComputeFun D $F2; ## compute the function
GetShape D $F2:2 Box2; ## check result
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#3
NewCommand D
isos 12
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
GetShape D $F2:2 Box2; ## check result
fit
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#2 Prism (after step #1)
isos 12
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
GetShape D $F2:2 Box2; ## check result
fit
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#2 Revol Sectioned
explode Box2 F
ComputeFun D $B1:1; ## compute box1 function
GetShape D $B1:1:2 Box1; ## check result
whatis Box1
-# referes to result NS
+# refers to result NS
GetReference D $B1; ## check is reference set
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
ComputeFun D $B1:1; ## compute box1 function
GetShape D $B1:1:2 Box1; ## check result
whatis Box1
-# referes to result NS
+# refers to result NS
GetReference D $B1; ## check is reference set
ComputeFun D $B1:1; ## compute box1 function
GetShape D $B1:1:2 Box1; ## check result
whatis Box1
-# referes to result NS
+# refers to result NS
GetReference D $B1; ## check is reference set
isos 12
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
GetShape D $F2:2 Box2; ## check result
fit
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#2 Prism 1
ComputeFun D $Pnt1:1; ## compute function
GetShape D $Pnt1:1:2 P1; ## check result
whatis P1
-# referes to result NS
+# refers to result NS
GetReference D $Pnt1; ## check is reference set
set Pnt2 [AddPoint D 0 200 0];
ComputeFun D $Pnt1:1; ## compute function
GetShape D $Pnt1:1:2 P1; ## check result
whatis P1
-# referes to result NS
+# refers to result NS
GetReference D $Pnt1; ## check is reference set
set Pnt2 [AddPoint D 0 200 0];
ComputeFun D $Pnt1:1; ## compute function
GetShape D $Pnt1:1:2 P1; ## check result
whatis P1
-# referes to result NS
+# refers to result NS
GetReference D $Pnt1; ## check is reference set
set Pnt2 [AddPoint D 0 200 0];
if {$IsDone == 0} {
set Test "TNaming_Iterator test"
set IsDone 0
- set TestError " # Can't test iterators becouse of Builder errors"
+ set TestError " # Can't test iterators because of Builder errors"
} else {
set Test "TNaming_Iterator test"
BuildNamedShape D [set TestLab]:4:1 MODIFY [lindex $needgenerate 0] [lindex $needgenerate 1] [lindex $needgenerate 2] [lindex $needgenerate 3] [lindex $needgenerate 4] [lindex $needgenerate 5] [lindex $needgenerate 6] [lindex $needgenerate 7] [lindex $needgenerate 8] [lindex $needgenerate 9] [lindex $needgenerate 10] [lindex $needgenerate 11]
BuildNamedShape D [set TestLab]:4:2 GENERATED [lindex $needmodify 0] [lindex $needmodify 1] [lindex $needmodify 2] [lindex $needmodify 3] b_1 b_1
-#################### test TNamig_Tool::NamedShape commmand ####################
+#################### test TNamig_Tool::NamedShape command ####################
set names "e1 e2 e3 p p_1 p_2 p_3 p_5 b b_1 b_2 b_3 b_4 b_5 b_6 c c_1 c_2 c_3 c_5 c_6 c_7 c_8 c_9 c_10"
set entities "1:1 1:2 1:3 2 2:1 2:1 2:1 2:3 3 3:1 3:2 3:3 3:4 3:5 3:6 4 4:1 4:1 4:2 4:1 4:1 4:1 4:2 2:3 4:1"
source ${scriptdir}/A3
set Test "TNaming_Selector test"
if {$IsDone == 0} {
- set TestError " # Can't test iterators becouse of Tool errors: # $TestError"
+ set TestError " # Can't test iterators because of Tool errors: # $TestError"
} else {
#################### selection and checking shapes ####################
}
}
}
-#################### with setted valid map ####################
+#################### with set valid map ####################
}
set mistake 0
-#################### procedure GetDigit returns digit (cutted) from string ####################
+#################### procedure GetDigit returns digit (cut) from string ####################
proc GetDigit {s} {
set res ""
for {set a 0} {$a < [string length $s]} {incr a} {
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
ComputeFun D $F2; ## compute the function
GetShape D $F2:2 Box2; ## check result
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#2
NewCommand D
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
ComputeFun D $F2; ## compute the function
GetShape D $F2:2 Box2; ## check result
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#2
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
ComputeFun D $Cyl:1
GetShape D $Cyl:1:2 CylS
-#3 Transalte Cylinder
+#3 Translate Cylinder
NewCommand D
set FTr1 [PTranslateDXYZ D $Cyl 100 0 0]
ComputeFun D $FTr1
ComputeFun D $B1:1; ## compute box1 function
GetShape D $B1:1:2 Box1; ## check result
whatis Box1
-# referes to result NS
+# refers to result NS
GetReference D $B1; ## check is reference set
#2 - create box using more flexible set of commands
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
ComputeFun D $F2; ## compute the function
GetShape D $F2:2 Box2; ## check result
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#3
NewCommand D
isos 12
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
GetShape D $F2:2 Box2; ## check result
fit
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#2 Prism (after step #1)
isos 12
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
GetShape D $F2:2 Box2; ## check result
fit
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#2 Revol Sectioned
explode Box2 F
ComputeFun D $B1:1; ## compute box1 function
GetShape D $B1:1:2 Box1; ## check result
whatis Box1
-# referes to result NS
+# refers to result NS
GetReference D $B1; ## check is reference set
NewCommand D
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
ComputeFun D $B1:1; ## compute box1 function
GetShape D $B1:1:2 Box1; ## check result
whatis Box1
-# referes to result NS
+# refers to result NS
GetReference D $B1; ## check is reference set
ComputeFun D $B1:1; ## compute box1 function
GetShape D $B1:1:2 Box1; ## check result
whatis Box1
-# referes to result NS
+# refers to result NS
GetReference D $B1; ## check is reference set
isos 12
set B2 [AddObject D]; ## add object
set F2 [AddFunction D $B2 Box]; ## add function
-BoxDX D $B2 190; ## set argumets of this function
+BoxDX D $B2 190; ## set arguments of this function
BoxDY D $B2 290
BoxDZ D $B2 390
InitLogBook D; ## initialize (clean) internal maps of labels
GetShape D $F2:2 Box2; ## check result
fit
whatis Box2
-GetReference D $B2; ## referes to result NS
+GetReference D $B2; ## refers to result NS
#2 Prism 1
ComputeFun D $Pnt1:1; ## compute function
GetShape D $Pnt1:1:2 P1; ## check result
whatis P1
-# referes to result NS
+# refers to result NS
GetReference D $Pnt1; ## check is reference set
set Pnt2 [AddPoint D 0 200 0];
ComputeFun D $Pnt1:1; ## compute function
GetShape D $Pnt1:1:2 P1; ## check result
whatis P1
-# referes to result NS
+# refers to result NS
GetReference D $Pnt1; ## check is reference set
set Pnt2 [AddPoint D 0 200 0];
ComputeFun D $Pnt1:1; ## compute function
GetShape D $Pnt1:1:2 P1; ## check result
whatis P1
-# referes to result NS
+# refers to result NS
GetReference D $Pnt1; ## check is reference set
set Pnt2 [AddPoint D 0 200 0];
set len [llength $chamf_edge_face]
for {set i 0} {$i < $len} {incr i} {
-# Numbers of EDGE and FACE in inital shape for step $i
+# Numbers of EDGE and FACE in initial shape for step $i
set ef [lindex $chamf_edge_face $i]
# Parameters of chamfer for step $i
set p [lindex $chamf_parameters $i]
if { [QAOsdPathType {\\share\file.pdf}] != "absolute unc " } { puts "Error: UNC path misdetection" }
if { [QAOsdPathType {\\?\C:\documents\file.docx}] != "absolute ntextended " } { puts "Error: NT Extended path misdetection" }
if { [QAOsdPathType {\\?\UNC\server\share\file.zip}] != "absolute unc ntextended uncextended " } { puts "Error: UNC extended path misdetection" }
-if { [QAOsdPathType {https://www.server.org/file.gif}] != "absolute protocol " } { puts "Error: remote protocal path misdetection" }
-if { [QAOsdPathType {content://file.jpg}] != "absolute protocol content " } { puts "Error: content protocal path misdetection" }
+if { [QAOsdPathType {https://www.server.org/file.gif}] != "absolute protocol " } { puts "Error: remote protocol path misdetection" }
+if { [QAOsdPathType {content://file.jpg}] != "absolute protocol content " } { puts "Error: content protocol path misdetection" }
if { [QAOsdPathType {/home/username/file.txt}] != "absolute unix " } { puts "Error: Unix path misdetection" }
if { [QAOsdPathType {/boot.bin}] != "absolute unix " } { puts "Error: Unix path misdetection" }
if { [QAOsdPathType {/}] != "absolute unix " } { puts "Error: Unix root misdetection" }
-if { [QAOsdPathType {./subfolder/../file.txt}] != "relative " } { puts "Error: Realtive path misdetection" }
-if { [QAOsdPathType {../file.txt}] != "relative " } { puts "Error: Realtive path misdetection" }
-if { [QAOsdPathType {.}] != "relative " } { puts "Error: Realtive path misdetection" }
-if { [QAOsdPathType {..}] != "relative " } { puts "Error: Realtive path misdetection" }
-if { [QAOsdPathType {image.png}] != "relative " } { puts "Error: Realtive path misdetection" }
+if { [QAOsdPathType {./subfolder/../file.txt}] != "relative " } { puts "Error: Relative path misdetection" }
+if { [QAOsdPathType {../file.txt}] != "relative " } { puts "Error: Relative path misdetection" }
+if { [QAOsdPathType {.}] != "relative " } { puts "Error: Relative path misdetection" }
+if { [QAOsdPathType {..}] != "relative " } { puts "Error: Relative path misdetection" }
+if { [QAOsdPathType {image.png}] != "relative " } { puts "Error: Relative path misdetection" }
if { [QAOsdPathPart {image.png} -folder] != "" } { puts "Error: Empty folder misdetected" }
if { [QAOsdPathPart {image.png} -fileName] != "image.png" } { puts "Error: File name misdetected" }
# - write data to
# Set flag dump_file to 1 in order to regenerate script files with actual data
-# used as reference. In this mode all tests intentionaly report failure.
+# used as reference. In this mode all tests intentionally report failure.
set dump_file 0
########################################################################
set mist_Second 0; set mist_w 0; set mist 0; set isIGES 0;
if { $mist_w < 1 } {
if { [catch { $ReadCommand D_Second $imagedir/${casename}_D_First$ext } catch_result] } {
- set err_msg "Errorr: Second - file was not read - exception"
+ set err_msg "Error: Second - file was not read - exception"
puts $err_msg
append todo_msg $todo_mask $err_msg $end_line
set mist_Second 1
}
close $fd_stream
} elseif { $mist != 1 } {
- puts "========================== Comparision with reference data ========"
+ puts "========================== Comparison with reference data ========"
puts ""
- # Comparision of reference data with obtained result
+ # Comparison of reference data with obtained result
set ref_list [split $ref_data \n]
set cur_list [split $result \n]
set nb_ref [llength $ref_list]
}
if { $dump_file != 0 } {
- puts "Error : Running in regeneration mode, comparision was not performed!"
+ puts "Error : Running in regeneration mode, comparison was not performed!"
if { $mist != 1 } {
puts "Generation of test file $groupname/$gridname/$casename successful"
} else {
if { $ref_Compare > 0} {
puts "Error : $ref_Compare differences with reference data found :\n$err_compare_ref"
} else {
- puts "Comparision of current result with reference data - OK\n"
+ puts "Comparison of current result with reference data - OK\n"
}
}
copy base_14 facdep
vertex v1 12.9980200374864 -13 16.2268812577167
-# 2 degres
+# 2 degrees
depouille result base 0 -1 0 facdep 2 12.9980200374864 -13 16.2268812577167 0 -1 0
checkprops result -s 8004.37
# Set flag dump_file to 1 in order to regenerate script files with actual data
-# used as reference. In this mode all tests intentionaly report failure.
+# used as reference. In this mode all tests intentionally report failure.
set dump_file 0
########################################################################
set mist 0;
}
close $fd_stream
} elseif { $mist != 1 } {
- puts "========================== Comparision with reference data ========"
+ puts "========================== Comparison with reference data ========"
puts ""
- # Comparision of reference data with obtained result
+ # Comparison of reference data with obtained result
set ref_list [split $ref_data \n]
set cur_list [split $result \n]
set cur2_list [split $result2 \n]
}
if { $dump_file != 0 } {
- puts "Error : Running in regeneration mode, comparision was not performed!"
+ puts "Error : Running in regeneration mode, comparison was not performed!"
if { $mist != 1 } {
puts "Generation of test file $groupname/$gridname/$casename successful"
} else {
if { $ref_Compare > 0} {
puts "Error : $ref_Compare differences with reference data found :\n$err_compare_ref"
} else {
- puts "Comparision of current result with reference data - OK\n"
+ puts "Comparison of current result with reference data - OK\n"
}
}
# Set flag dump_file to 1 in order to regenerate script files with actual data
-# used as reference. In this mode all tests intentionaly report failure.
+# used as reference. In this mode all tests intentionally report failure.
set dump_file 0
########################################################################
set mist 0;
}
close $fd_stream
} elseif { $mist != 1 } {
- puts "========================== Comparision with reference data ========"
+ puts "========================== Comparison with reference data ========"
puts ""
- # Comparision of reference data with obtained result
+ # Comparison of reference data with obtained result
set ref_list [split $ref_data \n]
set cur_list [split $result \n]
set nb_ref [llength $ref_list]
}
if { $dump_file != 0 } {
- puts "Error : Running in regeneration mode, comparision was not performed!"
+ puts "Error : Running in regeneration mode, comparison was not performed!"
if { $mist != 1 } {
puts "Generation of test file $groupname/$gridname/$casename successful"
} else {
if { $ref_Compare > 0} {
puts "Error : $ref_Compare differences with reference data found :\n$err_compare_ref"
} else {
- puts "Comparision of current result with reference data - OK\n"
+ puts "Comparison of current result with reference data - OK\n"
}
}
# Set flag dump_file to 1 in order to regenerate script files with actual data
-# used as reference. In this mode all tests intentionaly report failure.
+# used as reference. In this mode all tests intentionally report failure.
set dump_file 0
########################################################################
set mist 0;
}
close $fd_stream
} elseif { $mist != 1 } {
- puts "========================== Comparision with reference data ========"
+ puts "========================== Comparison with reference data ========"
puts ""
- # Comparision of reference data with obtained result
+ # Comparison of reference data with obtained result
set x_Ref 0; set y_Ref 0; set z_Ref 0;
set mass_Ref 0;
regexp {Centre of mass+: +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+)} $ref_data full x_Ref y_Ref z_Ref
}
if { $dump_file != 0 } {
- puts "Error : Running in regeneration mode, comparision was not performed!"
+ puts "Error : Running in regeneration mode, comparison was not performed!"
if { $mist != 1 } {
puts "Generation of test file $groupname/$gridname/$casename successful"
} else {
if { $ref_Compare > 0} {
puts "Error : $ref_Compare differences with reference data found :\n$err_compare_ref"
} else {
- puts "Comparision of current result with reference data - OK\n"
+ puts "Comparison of current result with reference data - OK\n"
}
}
point rd2_10 420 -378
2dbeziercurve result 8 0 0 0 1 -2 1 -2 -3 4 -3 4 5 -6 5 -6 -4
val2d result 0 1 10
-# Comparaison between currents value and references values
+# Comparison between currents value and references values
set tol 0.000001
set i 1
puts " --> Test value"
point rp_10 17.699999999999999 -15
point rd1_10 10.090909090909133 11.45454545454545
point rd2_10 -1197.6198347107429 -889.19008264462809
-# Comparaison between currents value and references values
+# Comparison between currents value and references values
set tol 0.000001
set i 1
puts " --> Test value"
#
-#evaluate n points beetween u1 and u2 on the curve 2d c
+#evaluate n points between u1 and u2 on the curve 2d c
#
proc val2d { c u1 u2 n } {
}
#
-#evaluate n points beetween u1 and u2 on the curve 3d c
+#evaluate n points between u1 and u2 on the curve 3d c
#
proc val3d { c u1 u2 n } {
proc compare {r1 r2 tol} {
if {$r1 - $r2 >= $tol} {
- puts "Error : evalution"
+ puts "Error : evaluation"
}
if {$r2 - $r1 >= $tol} {
- puts "Error : evalution"
+ puts "Error : evaluation"
}
}
! SplitClosedFaces.NbSplitPoints : Number of cuttings (number of resulting faces will be NbSplitPoints+1)
! SplitClosedFaces.CloseTolerance : Precision to define geometric closure.
-! SplitContinuity : Correction or split shapes to have speicified continuity
+! SplitContinuity : Correction or split shapes to have specified continuity
! SplitContinuity.Tolerance3d : 3D tolerance for correction of geometry
! SplitContinuity.SurfaceContinuity : Required continuity for surfaces
! SplitContinuity.CurveContinuity : Required continuity for curves
! FixShape.FixOrientationMode : Mode for fixing face orientation (default - -1, yes - 1 , no - 0).
! FixShape.FixMissingSeamMode : Mode for fixing face missing seam (default - -1, yes - 1 , no - 0).
! FixShape.FixSmallAreaWireMode : Mode for fixing small area wires (default - -1, yes - 1 , no - 0).
-! FixShape.ModifyTopologyMode : Mode allowing of modifing of topology (default - 0, yes - 1 , no - 0).
-! FixShape.ModifyGeometryMode : Mode allowing of modifing of geometry (default - 1, yes - 1 , no - 0).
+! FixShape.ModifyTopologyMode : Mode allowing of modifying of topology (default - 0, yes - 1 , no - 0).
+! FixShape.ModifyGeometryMode : Mode allowing of modifying of geometry (default - 1, yes - 1 , no - 0).
! FixShape.ClosedWireMode : Mode defining whether the wire is to be closed. (default - 1, yes - 1 , no - 0).
! FixShape.PreferencePCurveMode : Mode defining of preference of 2d representation (default - 1, yes - 1 , no - 0).
! FixShape.FixReorderMode : Mode for fixing of order of the edges in the wire (default - -1, yes - 1 , no - 0).
checkprops rv_$v -equal r_$v
}
-# select elements interfering with each edge (must be two vertices, five edges and and four faces - 11 in total)
+# select elements interfering with each edge (must be two vertices, five edges and four faces - 11 in total)
foreach e [explode b e] {
QABVH_ShapeSelect r_$e b $e
QABVH_ShapeSelect rv_$e b $e -void
checkprops rv_$e -equal r_$e
}
-# select elements interfering with each face (must be ffour vertices, eight edges and and five faces - 17 in total)
+# select elements interfering with each face (must be ffour vertices, eight edges and five faces - 17 in total)
foreach f [explode b f] {
QABVH_ShapeSelect r_$f b $f
QABVH_ShapeSelect rv_$f b $f -void
puts "================"
puts ""
#######################################################################
-# Wrong result done by FaceClassifier algorythm
+# Wrong result done by FaceClassifier algorithm
#######################################################################
restore [locate_data_file bug24422_Compound.brep] b
set coe [ checkoverlapedges e1 e2 $theTolerance ]
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
set cIdx1 [ expr $i1 + 1 ]
set cIdx2 [ expr $i2 + 1 ]
set coe [checkoverlapedges e1 e2]
puts "res_$ic <-> res_$jc: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
puts "Error: Overlapped intersection curves"
}
}
set coe [checkoverlapedges e1 e2]
puts "$i<->$j: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
set status 2
}
}
puts "============"
puts ""
###############################
-## Intersection algorithm produces curves overlaped
+## Intersection algorithm produces curves overlapped
###############################
set ExpToler 1.5361108163989659e-007
set coe [checkoverlapedges e1 e2 $Tolerance_Reached]
puts "c_$i<->c_$j: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: c_$i and c_$j are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: c_$i and c_$j are overlapped"
}
}
}
set coe [checkoverlapedges e1 e2 $Tolerance_Reached]
puts "$i<->$j: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: c_$i and c_$j are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: c_$i and c_$j are overlapped"
}
}
}
puts "$i<->$j: $coeb"
puts "$i<->$j: $coei"
- if { [regexp "Edges is not overlaped" $coeb] != 1 } {
- puts "Error: c_$i and c_$j are overlaped"
+ if { [regexp "Edges are not overlapped" $coeb] != 1 } {
+ puts "Error: c_$i and c_$j are overlapped"
}
- if { [regexp "Edges is not overlaped" $coei] != 1 } {
- puts "Error: intres_$i and intres_$j are overlaped"
+ if { [regexp "Edges are not overlapped" $coei] != 1 } {
+ puts "Error: intres_$i and intres_$j are overlapped"
}
erase eb1 eb2 ei1 ei2
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "result_$ic <-> result_$ip: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: result_$ic and result_$ip are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: result_$ic and result_$ip are overlapped"
}
}
fit
clear
don s1 s2 result*
-checkview -screenshot -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "result_$ic <-> result_$ip: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: result_$ic and result_$ip are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: result_$ic and result_$ip are overlapped"
}
}
fit
clear
don s1 s2 result*
-checkview -screenshot -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "result_$ic <-> result_$ip: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: result_$ic and result_$ip are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: result_$ic and result_$ip are overlapped"
}
}
fit
clear
don s1 s2 result*
-checkview -screenshot -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "result_$ic <-> result_$ip: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: result_$ic and result_$ip are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: result_$ic and result_$ip are overlapped"
}
}
don s1 s2 result*
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
-
puts "========================"
puts ""
#####################################
-## Intersection of two surfaces is not compleate curve.
+## Intersection of two surfaces is not complete curve.
#####################################
restore [locate_data_file OCC431a.draw] su1
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "res_$ic <-> res_$ip: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: res_$ic and res_$ip are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: res_$ic and res_$ip are overlapped"
}
}
set coe [checkoverlapedges e1 e2 5.0e-5]
puts "res_$ic <-> res_$ip: $coe"
- if { [regexp "Edges is not overlaped" $coe] != 1 } {
- puts "Error: res_$ic and res_$ip are overlaped"
+ if { [regexp "Edges are not overlapped" $coe] != 1 } {
+ puts "Error: res_$ic and res_$ip are overlapped"
}
}
explode s F
offsetcompshape result s -10 s_1
-#real volume of result shape is unknow yet
+#real volume of result shape is unknown yet
checkprops result -v 0
explode s F
catch {offsetcompshape result s -2 s_17}
-#real volume of result shape is unknow yet
+#real volume of result shape is unknown yet
checkprops result -v 534256
puts ""
set X1 5; # positive x-axis
-set X2 10; # nagative x-axis
+set X2 10; # negative x-axis
set Y1 5; # positive y-axis
set Y2 10; # negative y-axis
set TOP 0; # positive z-axis
puts ""
set X1 10; # positive x-axis
-set X2 5; # nagative x-axis
+set X2 5; # negative x-axis
set Y1 10; # positive y-axis
set Y2 5; # negative y-axis
set TOP 5; # positive z-axis
puts ""
set X1 10; # positive x-axis
-set X2 5; # nagative x-axis
+set X2 5; # negative x-axis
set Y1 10; # positive y-axis
set Y2 5; # negative y-axis
set TOP 5; # positive z-axis
puts ""
set X1 5; # positive x-axis
-set X2 10; # nagative x-axis
+set X2 10; # negative x-axis
set Y1 5; # positive y-axis
set Y2 10; # negative y-axis
set TOP 5; # positive z-axis
puts ""
set X1 5; # positive x-axis
-set X2 5; # nagative x-axis
+set X2 5; # negative x-axis
set Y1 10; # positive y-axis
set Y2 10; # negative y-axis
set TOP 5; # positive z-axis
puts ""
set X1 10; # positive x-axis
-set X2 10; # nagative x-axis
+set X2 10; # negative x-axis
set Y1 5; # positive y-axis
set Y2 5; # negative y-axis
set TOP 5; # positive z-axis
puts ""
set X1 5; # positive x-axis
-set X2 10; # nagative x-axis
+set X2 10; # negative x-axis
set Y1 5; # positive y-axis
set Y2 10; # negative y-axis
set TOP 0; # positive z-axis
puts ""
set X1 10; # positive x-axis
-set X2 5; # nagative x-axis
+set X2 5; # negative x-axis
set Y1 10; # positive y-axis
set Y2 5; # negative y-axis
set TOP 0; # positive z-axis
puts ""
set X1 10; # positive x-axis
-set X2 5; # nagative x-axis
+set X2 5; # negative x-axis
set Y1 10; # positive y-axis
set Y2 5; # negative y-axis
set TOP 10; # positive z-axis
box b 100 100 1
# N defines number of holes along each of X and Y, thus total N^2 holes
-# will be drilled; note that the algorithm iself is likely to be quadratic
+# will be drilled; note that the algorithm itself is likely to be quadratic
# for number of shapes, i.e. CPU ~ N^4
set N 40
set holes {}
bfillds
#
-puts "Comparing perfomance of building many faces"
+puts "Comparing performance of building many faces"
puts "in parallel and serial modes"
#
puts "=========="
puts ""
#####################################
-# Impove BRepMesh_Classifier to cope with intersection of huge number of wires
+# Improve BRepMesh_Classifier to cope with intersection of huge number of wires
#####################################
cpulimit 2500
puts "=========="
puts ""
#####################################
-# Impove BRepMesh_Classifier to cope with intersection of huge number of wires
+# Improve BRepMesh_Classifier to cope with intersection of huge number of wires
#####################################
cpulimit 2500
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# BOP perfomance improvemen
+# BOP performance improvement
#######################################################################
set BugNumber OCC10160
puts "============"
puts ""
#######################################################################
-# Fuse problem of symetrical shapes. Appendix for NPAL19789
+# Fuse problem of symmetrical shapes. Appendix for NPAL19789
#######################################################################
cpulimit 2500
box b1 100 100 1
# N defines number of holes along each of X and Y, thus total N^2 holes
-# will be drilled; note that the algorithm iself is likely to be quadratic
+# will be drilled; note that the algorithm itself is likely to be quadratic
# for number of shapes, i.e. CPU
set N 40
set holes {}
puts "========"
puts ""
########################################################################################################
-# Algorith GeomLib_CheckCurveOnSurface takes too much time for Bspline curves with big number of knots
+# Algorithm GeomLib_CheckCurveOnSurface takes too much time for Bspline curves with big number of knots
########################################################################################################
beziercurve c 4 0 0 0 1 1 0 2 1 0 3 0 0
# tests performance of selection algorithm. Creates a grid of spheres with
# size DISCRETISATION * DISCRETISATION. To get representative performance
# test results, increase the size of grid in DISCRETISATION and check time
-# measurments in comparsion to previous OCCT versions. You may also check
+# measurements in comparison to previous OCCT versions. You may also check
# the time of selection when all BVH trees are built via uncommenting
# the code in "Start building all trees" section.
#######################################################################
puts "Visualization - improve selection mechanism"
# tests performance of selection algorithm. Creates a spiral via polyline
# and checks its selection in neutral point. For representative result,
-# increase the number of points in POINTS_NUM and check time measurments
-# in comparsion to previous OCCT versions.
+# increase the number of points in POINTS_NUM and check time measurements
+# in comparison to previous OCCT versions.
#######################################################################
set POINTS_NUM 1000
# with the spine's tangent
###############################################################################
# buildsweep result [-M/-C/-R] [-S] [tol] : options are
-# -M : Discontinuities are treated by Modfication of
+# -M : Discontinuities are treated by Modification of
# the sweeping mode : it is the default
# -C : Discontinuities are treated like Right Corner
-# Treatement is Extent && Intersect
+# Treatment is Extent && Intersect
# -R : Discontinuities are treated like Round Corner
-# Treatement is Intersect and Fill
+# Treatment is Intersect and Fill
###############################################################################
if { [isdraw result] } {
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 55 2.5 ${z4}
# ending vertex
vertex v5 55 2.5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 55 2.5 ${z4}
# ending vertex
vertex v5 55 2.5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 55 2.5 ${z4}
# ending vertex
vertex v5 55 2.5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 55 2.5 ${z4}
# ending vertex
vertex v5 55 2.5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 2.5 5 ${z4}
# ending vertex
vertex v5 2.5 5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 2.5 5 ${z4}
# ending vertex
vertex v5 2.5 5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 2.5 5 ${z4}
# ending vertex
vertex v5 2.5 5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 2.5 5 ${z4}
# ending vertex
vertex v5 2.5 5 -${z4}
set z5 30
set z6 10
-# begining vertex
+# beginning vertex
vertex v4 55 2.5 ${z4}
# ending vertex
vertex v5 55 2.5 -${z4}
set z5 30
set z6 10
-# begining vertex
+# beginning vertex
vertex v4 55 2.5 ${z4}
# ending vertex
vertex v5 55 2.5 -${z4}
set z5 30
set z6 10
-# begining vertex
+# beginning vertex
vertex v4 2.5 5 ${z4}
# ending vertex
vertex v5 2.5 5 -${z4}
set z5 30
set z6 10
-# begining vertex
+# beginning vertex
vertex v4 2.5 5 ${z4}
# ending vertex
vertex v5 2.5 5 -${z4}
# spine
polyline s1 0 0 ${z4} 0 0 -${z4}
-# begining vertex
+# beginning vertex
vertex v4 0 0 ${z4}
# ending vertex
vertex v5 0 0 -${z4}
# spine
polyline s1 0 0 ${z4} 0 0 -${z4}
-# begining vertex
+# beginning vertex
vertex v4 0 0 ${z4}
# ending vertex
vertex v5 0 0 -${z4}
# spine
polyline s1 0 0 ${z4} 0 0 -${z4}
-# begining vertex
+# beginning vertex
vertex v4 0 0 ${z4}
# ending vertex
vertex v5 0 0 -${z4}
# spine
polyline s1 0 0 ${z4} 0 0 -${z4}
-# begining vertex
+# beginning vertex
vertex v4 0 0 ${z4}
# ending vertex
vertex v5 0 0 -${z4}
# spine
polyline s1 0 0 ${z4} 0 0 -${z4}
-# begining vertex
+# beginning vertex
vertex v4 40 0 ${z4}
# ending vertex
vertex v5 40 0 -${z4}
# spine
polyline s1 0 0 ${z4} 0 0 -${z4}
-# begining vertex
+# beginning vertex
vertex v4 40 0 ${z4}
# ending vertex
vertex v5 40 0 -${z4}
# spine
polyline s1 0 0 ${z4} 0 0 -${z4}
-# begining vertex
+# beginning vertex
vertex v4 40 0 ${z4}
# ending vertex
vertex v5 40 0 -${z4}
# spine
polyline s1 0 0 ${z4} 0 0 -${z4}
-# begining vertex
+# beginning vertex
vertex v4 40 0 ${z4}
# ending vertex
vertex v5 40 0 -${z4}
puts "========"
-puts "0024393: Visualization - objects position with enchanced precision"
+puts "0024393: Visualization - objects position with enhanced precision"
puts "========"
pload MODELING VISUALIZATION
vmanipulator m -attach c1 -adjustPosition 1 -adjustSize 0 -enableModes 1 -size 40
# --------------------------
-# test hilight and detection
+# test highlight and detection
# --------------------------
set mouse_pick {229 141}