Рубрики

sketches

How to sketch a basic cascade

The Library of Congress generally does not own rights to material in its collections and, therefore, cannot grant or deny permission to publish or otherwise distribute the material. For information about assessing rights, see the Rights and Restrictions Information page.


Draw: Demo Scripts

All demo scripts are provided with OCCT sources and locate in CASROOT/samples/tcl. To play around them please follow the steps below:

  1. Start DRAWEXE
  2. Type cd ../.. to return to the root directory
  3. Type cd samples/tcl to reach the DrawResources directory
  4. Type source to run the demonstration file provided with Open CASCADE. The following demonstration files are available:
    • DataExchangeDemo.tcl: demonstrates sample sequence of operations with writing and reading IGES file
    • ModelingDemo.tcl: demonstrates creation of simple shape and displaying it in HLR mode
    • VisualizationDemo.tcl: demonstrates use of 3d viewer
    • cad.tcl: creates solid shape looking like abbreviation “CAD”
    • bottle.tcl: creates bottle as in OCCT Tutorial
    • drill.tcl: creates twist drill bit shape
    • cutter.tcl: creates milling cutter shape
    • xde.tcl: demonstrates creation of simple assembly in XDE
    • materials.tcl: demonstrates visual properties of materials supported by 3d viewer
    • raytrace.tcl: demonstrates use of ray tracing display in 3d viewer
    • dimensions.tcl: demonstrates use of dimensions, clipping, and capping in 3d viewer
    • .

Draw is a command interpreter based on TCL and a graphical system used for testing and demonstrating OCCT modeling libraries.

Draw can be used interactively to create, display and modify objects such as curves, surfaces and topological shapes.

Scripts can be written to customize Draw and perform tests. New types of objects and new commands can be added using C++ programming language.

  • A command interpreter based on TCL command language.
  • A 2D an 3D graphic viewer with support of operations such as zoom, pan, rotation and full-screen views.
  • An optional set of geometric commands to create and modify curves and surfaces and to use OCCT geometry algorithms.
  • A set of topological commands to create and modify BRep shapes and to use OCCT topology algorithms.
  • A set of graphic commands for view and display operations including Mesh Visualization Service.
  • A set of Application framework commands for handling of files and attributes.
  • A set of Data Exchange commands for translation of files from various formats (IGES,STEP) into OCCT shapes.
  • A set of Shape Healing commands: check of overlapping edges, approximation of a shape to BSpline, etc.

You can add new custom test harness commands to Draw in order to test or demonstrate a new functionality, which you are developing.

Currently DRAW Test Harness is a single executable called DRAWEXE.

Commands grouped in toolkits can be loaded at run-time thereby implementing dynamically loaded plug-ins. Thus you can work only with the commands that suit your needs adding the commands dynamically without leaving the Test Harness session.

Declaration of available plug-ins is done through special resource file(s). The pload command loads the plug-in in accordance with the specified resource file and activates the commands implemented in the plug-in.

The whole process of using the plug-in mechanism as well as the instructions for extending Test Harness is described in the Draw Test Harness.

Draw Test Harness provides an environment for OCCT automated testing system. Check its Automated Testing System for details.

  • The DRAWEXE executable is delivered with the installation procedure on Windows platform only.
  • To start it, launch DRAWEXE executable from Open CASCADE Technology/Draw Test Harness item of the StartPrograms menu.

Experimenting with Draw Test Harness

  • If OCCT was built by Code::Blocks use $CASROOT/draw.sh file to launch DRAWEXE executable.

Draw[1]> prompt appears in the command window

Launch Draw executable from Open CASCADE TechnologyTest HarnessDraw Test Harness item of the StartPrograms menu or Use $CASROOTdraw.bat file to launch DRAWEXE executable.

Draw[1]> prompt appears in the command window

Creating your first geometric objects

  1. In the command window, type axo to create an axonometric view
  2. Type box b -10 -10 -10 20 20 20 to create a cube b of size 20, parallel to the X Y Z axis and centered on the origin. The cube will be displayed in the axonometric view in wireframe mode.
  3. Type fit to fill the viewer with the cube
  4. Type pcylinder c 2 30 to create a cylinder c of radius 2 and height 30. The cylinder will be displayed in addition to the cube

Manipulating the view

  1. Type clear to erase the view
  2. Type donly c to display the cylinder only
  3. Type donly b to display the cube only
  4. Type hlr hlr b to display the cube in the hidden line removal mode

Running demonstration files

  1. Type cd ../.. to return to the root directory
  2. Type cd samples/tcl to reach the DrawResources directory
  3. Type source to run the demonstration file provided with Open CASCADE. The following demonstration files are available:
    • DataExchangeDemo.tcl: demonstrates sample sequence of operations with writing and reading IGES file
    • ModelingDemo.tcl: demonstrates creation of simple shape and displaying it in HLR mode
    • VisualizationDemo.tcl: demonstrates use of 3d viewer
    • cad.tcl: creates solid shape looking like abbreviation “CAD”
    • bottle.tcl: creates bottle as in OCCT Tutorial
    • drill.tcl: creates twist drill bit shape
    • cutter.tcl: creates milling cutter shape
    • xde.tcl: demonstrates creation of simple assembly in XDE
    • materials.tcl: demonstrates visual properties of materials supported by 3d viewer
    • raytrace.tcl: demonstrates use of ray tracing display in 3d viewer
    • dimensions.tcl: demonstrates use of dimensions, clipping, and capping in 3d viewer

Getting Help

  1. Type help to see all available commands
  2. Type help to find out the arguments for a given command
  • Generated on Tue Oct 11 2022 04:12:31 for Open CASCADE Technology by 1.9.1




Obtaining Copies

If an image is displaying, you can download it yourself. (Some images display only as thumbnails outside the Library of Congress because of rights considerations, but you have access to larger size images on site.)

Alternatively, you can purchase copies of various types through Library of Congress Duplication Services.

  1. If a digital image is displaying: The qualities of the digital image partially depend on whether it was made from the original or an intermediate such as a copy negative or transparency. If the Reproduction Number field above includes a reproduction number that starts with LC-DIG. then there is a digital image that was made directly from the original and is of sufficient resolution for most publication purposes.
  2. If there is information listed in the Reproduction Number field above: You can use the reproduction number to purchase a copy from Duplication Services. It will be made from the source listed in the parentheses after the number. If only black-and-white (“b&w”) sources are listed and you desire a copy showing color or tint (assuming the original has any), you can generally purchase a quality copy of the original in color by citing the Call Number listed above and including the catalog record (“About This Item”) with your request.
  3. If there is no information listed in the Reproduction Number field above: You can generally purchase a quality copy through Duplication Services. Cite the Call Number listed above and include the catalog record (“About This Item”) with your request.

Price lists, contact information, and order forms are available on the Duplication Services Web site.

Access to Originals

Please use the following steps to determine whether you need to fill out a call slip in the Prints and Photographs Reading Room to view the original item(s). In some cases, a surrogate (substitute image) is available, often in the form of a digital image, a copy print, or microfilm.

  1. Is the item digitized? (A thumbnail (small) image will be visible on the left.)
    • Yes, the item is digitized. Please use the digital image in preference to requesting the original. All images can be viewed at a large size when you are in any reading room at the Library of Congress. In some cases, only thumbnail (small) images are available when you are outside the Library of Congress because the item is rights restricted or has not been evaluated for rights restrictions.
      As a preservation measure, we generally do not serve an original item when a digital image is available. If you have a compelling reason to see the original, consult with a reference librarian. (Sometimes, the original is simply too fragile to serve. For example, glass and film photographic negatives are particularly subject to damage. They are also easier to see online where they are presented as positive images.)
    • No, the item is not digitized. Please go to #2.
  2. Do the Access Advisory or Call Number fields above indicate that a non-digital surrogate exists, such as microfilm or copy prints?
    • Yes, another surrogate exists. Reference staff can direct you to this surrogate.
    • No, another surrogate does not exist. Please go to #3.
  3. If you do not see a thumbnail image or a reference to another surrogate, please fill out a call slip in the Prints and Photographs Reading Room. In many cases, the originals can be served in a few minutes. Other materials require appointments for later the same day or in the future. Reference staff can advise you in both how to fill out a call slip and when the item can be served.

To contact Reference staff in the Prints and Photographs Reading Room, please use our Ask A Librarian service or call the reading room between 8:30 and 5:00 at 202-707-6394, and Press 3.

Cite This Item

Citations are generated automatically from bibliographic data as a convenience, and may not be complete or accurate.

Queen, James Fuller, 1820 Or , Artist. Sketch of Cascade Visible Between Two Bluffs . , 1854. Photograph. https://www.loc.gov/item/2016648691/.

Colin Wynn
the authorColin Wynn

Leave a Reply