Draw can be used interactively to create, display and modify objects such as curves, surfaces and topological shapes.
-Scripts may be written to customize Draw and perform tests. New types of objects and new commands may be added using the C++ programing language.
+Scripts may be written to customize Draw and perform tests.
+New types of objects and new commands may be added using the C++ programming language.
Draw consists of:
The following substitutions are performed by TCL:
-Variable substitution is triggered by the $ character (as with csh), the content of the variable is substitued; { } may be used as in csh to enclose the name of the variable.
+Variable substitution is triggered by the $ character (as with csh), the content of the variable is substituted; { } may be used as in csh to enclose the name of the variable.
**Example:**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.cpp}
@subsubsection occt_draw_4_1_14_1 disp, don, era
-These commands have the same meaning as correspondingly display, donly and erase, but with the difference that they evaluate the arguments using glob pattern rules. For example, to display all objects with names d_1, d_2, d_3, etc. it is enouth to run the command:
+These commands have the same meaning as correspondingly display, donly and erase, but with the difference that they evaluate the arguments using glob pattern rules.
+For example, to display all objects with names d_1, d_2, d_3, etc. it is enough to run the command:
~~~~~{.cpp}
disp d_*
~~~~~
Changes the type of HLR algorithm used for shapes.
If the algo_type is algo, the exact HLR algorithm is used, otherwise the polygonal algorithm is used for defined shapes.
-If no shape is specified through the command arguments, the given HLR algorithm_type is applied to all *AIS_Shape* isntances in the current context, and the command also changes the default HLR algorithm type.
+If no shape is specified through the command arguments, the given HLR algorithm_type is applied to all *AIS_Shape* instances in the current context, and the command also changes the default HLR algorithm type.
**Note** that this command works with instances of *AIS_Shape* or derived classes only, other interactive object types are ignored.
**Example:**
~~~~~
-# 3d tranlation
+# 3d translation
point p 10 20 30
circle c 10 20 30 5
torus t 10 20 30 5 2
Both command use for fitting approximation algorithm.
**surfint** uses interpolation algorithm and can take array of point only from other input surface.
Optional parameter **periodic_flag** allows to get correct periodical surfaces in U direction.
-U direction of result surface corresponds colums of initial array of points.
+U direction of result surface corresponds columns of initial array of points.
If **periodic_flag** = 1, algorithm uses first row of array as last row and builds periodical surface.
**Example:**
* **sprops** of all faces with a surface density of 1;
* **vprops** of all solids with a density of 1.
-For computation of properties of the shape, exact geomery (curves, surfaces) or
+For computation of properties of the shape, exact geometry (curves, surfaces) or
some discrete data (polygons, triangulations) can be used for calculations.
The epsilon, if given, defines relative precision of computation.
The **closed** flag, if present, forces computation only closed shells of the shape.
~~~~~
Computes and displays the bounding box (BndBox) of a shape. The bounding box is a cuboid that circumscribes the source shape.
-Generaly, bounding boxes can be divided into two main types:
+Generally, bounding boxes can be divided into two main types:
- axis-aligned BndBox (AABB). I.e. the box whose edges are parallel to an axis of World Coordinate System (WCS);
- oriented BndBox (OBB). I.e. not AABB.
-Detailed information about this command is availabe in DRAW help-system (enter "help bounding" in DRAW application).
+Detailed information about this command is available in DRAW help-system (enter "help bounding" in DRAW application).
**Example 1: Creation of AABB with given corners**
~~~~~
nurbsconvert result name [result name]
~~~~~
-Changes the NURBS curve definition of a shape to a Bspline curve definition. This conversion is required for assymetric deformation and prepares the arguments for other commands such as **deform**. The conversion can be necessary when transferring shape data to other applications.
+Changes the NURBS curve definition of a shape to a Bspline curve definition.
+This conversion is required for asymmetric deformation and prepares the arguments for other commands such as **deform**.
+The conversion can be necessary when transferring shape data to other applications.
@subsubsection occt_draw_7_11_6 edgestofaces
@subsubsection occt_draw_bop_options_obb OBB usage
-**buseobb** commannd enables/disables the usage of OBB in BOP algorithms.
+**buseobb** command enables/disables the usage of OBB in BOP algorithms.
Syntax:
~~~~
brepiges aa /disk1/tmp/aaa.igs
== unit (write) : MM
== mode write : Faces
-== To modifiy : command param
+== To modify : command param
== 1 Shapes written, giving 345 Entities
== Now, to write a file, command : writeall filename
== Output on file : /disk1/tmp/aaa.igs
~~~~~
Saves the contents of the viewer window as an image (XWD, png or BMP file).
-<i>\<filename\></i> must have a corresponding extention.
+<i>\<filename\></i> must have a corresponding extension.
**Example:**
~~~~~
**projpcurve** returns the projection of a given point on a given curve on surface.
The curve on surface is defined by giving the edge and face names.
-Edge must have curve 2D repesentation on the face.
+Edge must have curve 2D representation on the face.
Optional parameter <i>\<start_param\></i> is any parameter of pcurve, which is used by algorithm as start point for searching projection of given point with help of local Extrema algorithm.
If this parameter is not set, algorithm uses whole parametric interval of pcurve for searching projection.