About cad2octree

Description
Download
Installation
Documentation
Project page

Description

cad2octree generates an octree from a surface model in DXF-Format with Polygons (Entity 3DFACE) or cubic B-Splines (Entity POLYLINE).
cad2octree has the follow usage:
cad2octree [-d <depth>] [-q] <input> -o <output>
-d <depth> maximum depth of octree,
-q forces splitting of quadrilaterals in triangles,
<input> input filename. This file contains the surface model which is to read,
<-o output> output filename. This file contains the generate octree.

Installation

Sources

  1. Download dime >=0.9 from here or from Coin3d.

Unix-like OS

  1. Extract the archive
    (tar.bz2-archive with tar -xjf dime*tar.bz2 or tar.gz-archive with tar -xzf dime*.tar.gz).
  2. Install dime calling ./configure in dime-directory and make install
    (If you want to install it not in standard directory use ./configure --prefix=<dir> instead of ./configure, e.g. ./configure --prefix=$HOME installs dime under home directory.)
  3. Do the same thing with cad2octree-archive.
    tar -xjf cad2octree*.tar.bz2
    cd cad2octree-0.2.1/
    ./configure
    make install
    (If you use a cad2octree version <=0.2.0 modify paths, ... in Makefile.incl and call make to compile cad2octree sources. It's possible that you have to include dime's library path in LD_LIBRARY_PATH).

Windows

  1. Extract and install dime.
  2. Set the enviroment variables CXX, CXXFLAGS, DIME_INCL and DIME_LIB to the correct values.
    (Its recommended to use cygwin with g++-2.)
  3. Now you can use make.bat to compile cad2octree.

Binaries

Linux

  1. Extract bin-archive:
    tar -xjf cad2octree*.i386.tar.bz2
  2. Now you can call cad2octree directly.
    (If it don't works missing dime library, install dime at first and include dime's library directory in LD_LIBRARY_PATH enviroment variable.)

Windows

  1. Extract zip-archive.
  2. Now you can call cad2octree directly.
    (Make sure, that cygwin's dll cygwin1.dll exists. cad2octree's windows binary is created using cygwin/g++-2 platform.)

Documentation

An overview and background information you can find in diploma thesis octree-based models as interface to CAD-programs.

There is also exist a class reference online and as:
html
cad2octree-0.2.1.html-doc.zip (331kB)
cad2octree-0.2.1.html-doc.bz2 (107kB)
ps
cad2octree-0.2.1.ps.zip (214kB)
pdf
cad2octree-0.2.1.pdf.zip (674kB)

Note: Documentation language is german.


lao tao
updated: 2003-03-24