Bazzoen - Various interactive FEM bits and pieces

Introduction

This is a package that contains the code that I used to perform deformation benchmarks in my PhD. thesis. In the unlikely event that you did not download it from my homepage, the web location of this readme is http://www.cs.uu.nl/groups/AA/virtual/surgery/bazzoen/. The package itself can be downloaded at http://www.cs.uu.nl/groups/AA/virtual/surgery/bazzoen/bazzoen-0.0.14.tar.gz.

Here is the obligatory screenshot:

     shot.png
     

It has been developed on RedHat Linux 8.0, but should be portable to other platforms supporting GLUT and GCC 3.x.

Contents

It contains code for.

It also contains a fundamentally flawed proof-of-concept needle insertion simulation in 3D, using Delaunay Tetrahedralizations (DTs). In this function, it contains code for

These bits and pieces form an amalgated mess - reading this code is not for the faint of heart.

The interesting bits have been scooped out and reused in my 2D needle insertion, which is much cleaner, in general.

Examples

This runs all computational deformation experiments, leaving a bunch of EPS graphs in experiments/*.dir/. This requires gnuplot and python 2.x

  configure --enable-optimising --disable-opengl \
    --enable-config=barespeed
  make conf=barespeed
  make -C experiments/ experiments 

The following compiles an interactive version

  configure --enable-optimising --enable-opengl \
    --enable-config=glutspeed
  make conf=glutspeed

Try the following for a demo

   
  ./needle/out-glutspeed/needle -p meshes/pyratit.1\
    -oinit-fix-shape=bottom \
    -oyoung=34e3 -oelasticity=linear -oneedle-puncture=no

Move view by dragging mouse buttons. Move needle with Shift-mouse. The needle initially is parallel to the viewing direction so try the following: rotate view first (middle button drag), then extend needle (shift + right button + drag mouse to right). When the needle hits the surface, rotate it (shift + middle button + drag). Play around. You can use dynamic models (-oproblem-type=dynamic, be sure to fiddle with time-step and viscosity. It easily explodes). If you have a fast machine (my 1 ghz is a little too slow) you can try other material models (eg. -oelasticity=neohooke). Anything besides St. Venant Kirchoff is likely to explode when you use large movements due to highly nonlinear log and exp terms in the energy density.

Keys:

e
toggle edges
s
toggle solid
C
toggle Clipping
=
print stats
a
toggle axes
w
write object, and deformations
t
toggle transparent
i
toggle drawing inside edges
I
invert tris (swap front & back)
d
toggle showing deformed object.
C
toggle clipping. Ctrl + mousebuttons drags clipping plane. Use with transparent tets.
D
toggle showing degenerate objects

License (1)

The formal part of the license is below. Informally: I basically couldn't care less about what you do with this software. However, if you use it in any way to write articles in any form, I would greatly appreciate being cited. Relevant citations are:

@PhdThesis{nienhuys03:_cuttin,
  author = 	 {Han-Wen Nienhuys},
  title = 	 {Cutting in deformable objects},
  school = 	 {Utrecht University},
  year = 	 2003
}

License (2)

Copyright (c) 2002 Han-Wen Nienhuys and Utrecht University

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


This page was built from bazzoen-0.0.14 (stable-branch) by

Han-Wen Nienhuys <hanwen@cs.uu.nl>, Mon May 19 15:50:27 2003 CEST.