Skip to content

fdarling/opencascade-2d-offsetting-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opencascade-2d-offsetting-demo

simple C++ demo console application that uses Open CASCADE Technology to both offset and apply boolean operations to 2D shapes composed of line segments and arc segments.

Dependencies

For the C++ Demo:

For Debian 9 (stretch), the following dependencies needed to be installed to build Open CACADE 7.4.0:

sudo apt-get install tk-dev libxmu-dev libxi-dev

For the Python Testbench:

On Ubuntu 18.04 (bionic):

sudo apt-get install python3-matplotlib python3-shapely

Building

There is a simple Makefile to build the C++ executable. The library paths may need to be edited depending on the operating system.

make

Running

Under Linux (and possibly macOS) there is a run.sh script that attempts to compile the project, run the C++ demo on a test case, and then visualize the input/output shapes. The script must have execute permissions:

chmod a+x run.sh
./run.sh

About

simple console C++ demo application that uses Open CASCADE Technology to offset shapes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors