| 
            Last change
 on this file since 88bb6b was             0eb8f4, checked in by Frederik Heber <heber@…>, 13 years ago           | 
        
        
          | 
             
Cylinder implementation. 
 
Taken from somehow broken branch, so rebase was not possible, 
unfortunately. 
 
The cylinder shape is centered on (0 0 0) and its height (z-Axis) 
ranges from -1 to 1. Different scalings can be applied with the special 
constructor. 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            607 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [e38447] | 1 | /*
 | 
|---|
 | 2 |  * BaseShapes.hpp
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Jun 18, 2010
 | 
|---|
 | 5 |  *      Author: crueger
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef BASESHAPES_HPP_
 | 
|---|
 | 9 | #define BASESHAPES_HPP_
 | 
|---|
 | 10 | 
 | 
|---|
| [56f73b] | 11 | // include config.h
 | 
|---|
 | 12 | #ifdef HAVE_CONFIG_H
 | 
|---|
 | 13 | #include <config.h>
 | 
|---|
 | 14 | #endif
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | 
 | 
|---|
| [e38447] | 17 | #include "Shapes/Shape.hpp"
 | 
|---|
 | 18 | 
 | 
|---|
| [0eb8f4] | 19 | Shape Cylinder();
 | 
|---|
 | 20 | Shape Cylinder(const Vector ¢er, const double xrot, const double yrot,
 | 
|---|
 | 21 |         const double height, const double radius);
 | 
|---|
| [e38447] | 22 | Shape Sphere();
 | 
|---|
| [f3526d] | 23 | Shape Sphere(const Vector ¢er,double radius);
 | 
|---|
 | 24 | Shape Ellipsoid(const Vector ¢er, const Vector &radius);
 | 
|---|
| [e38447] | 25 | Shape Cuboid();
 | 
|---|
| [d76a7c] | 26 | Shape Cuboid(const Vector &corner1, const Vector &corner2);
 | 
|---|
| [e38447] | 27 | 
 | 
|---|
 | 28 | #endif /* BASESHAPES_HPP_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.