source: src/Shapes/BaseShapes.hpp@ e1e108

IndependentFragmentGrids_IntegrationTest
Last change on this file since e1e108 was 0eb8f4, checked in by Frederik Heber <heber@…>, 12 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
Line 
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
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
17#include "Shapes/Shape.hpp"
18
19Shape Cylinder();
20Shape Cylinder(const Vector &center, const double xrot, const double yrot,
21 const double height, const double radius);
22Shape Sphere();
23Shape Sphere(const Vector &center,double radius);
24Shape Ellipsoid(const Vector &center, const Vector &radius);
25Shape Cuboid();
26Shape Cuboid(const Vector &corner1, const Vector &corner2);
27
28#endif /* BASESHAPES_HPP_ */
Note: See TracBrowser for help on using the repository browser.