Skip to content

dcunited001/occt-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

OCCT: Scratch

Repo for testing occt + emacs +org-babel. The goal is to enable loading the environment for passing TCL scripts to OCCT from org-mode.

This should allow the generation of fairly simple shapes with simple operations – but anything more complex than fillets with edge specification or simple boolean operations will probably require code that’s unmaintainable. The idea behind the workflow is to use OCCT to parametrically produce simple models which can be imported into other CAD programs.

Notes

Either use buffer-env or guix shell -Df guix.scm to establish the environment.

OCCT Environment

Run ls -al $GUIX_ENVIRONMENT after loading guix shell to see what’s there.

Env Scripts

  • $GUIX_ENVIRONMENT/bin/custom_gcc_64.sh
  • $GUIX_ENVIRONMENT/bin/custom.sh
  • $GUIX_ENVIRONMENT/bin/DRAWEXE
  • $GUIX_ENVIRONMENT/bin/draw.sh
  • $GUIX_ENVIRONMENT/bin/env.sh

OCCT Tests

OCCT Draw

Running draw.sh starts a console and the GUI. To do so, it loads the env.sh, custom.sh, and custom_gcc_64.sh scripts, in order. In the console or GUI, you’ll need to run pload ALL to load all (some?) functionality.

NOTE: either some environment details are not being properly loaded. e.g. some GUI interactions are not enabled. Perhaps some packages are missing from the guix.scm propagated inputs.

TCL Commands

TCL commands are entered into the console.

pload
load script/module
help
get help on commands
help help
get help on help
spy
record TCL macros into a file

Commands for loading IGES/STEP files

Geometry Commands

This will be more interesting if data is loaded from a file

  • beziercurve
  • bsplinecurve

Errors

The docs mention that =$CASROOT/src/

Clicking anything in “File” :: bgerror failed to handle background error.

Clicking Samples > View Samples :: Original error: no files matched glob pattern “*.tcl”

About

repo for testing occt + org-babel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages