SPHinXsys  alpha version
Classes | Namespaces | Macros | Typedefs
multi_polygon_shape.h File Reference

Here, we define the 2D geometric algortihms. they are based on the boost library. More...

#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
#include <boost/geometry/strategies/transform.hpp>
#include <boost/geometry/strategies/transform/matrix_transformers.hpp>
#include "base_data_package.h"
#include "base_geometry.h"
#include <iostream>
#include <string>
#include <fstream>

Go to the source code of this file.

Classes

class  SPH::MultiPolygon
 used to define a closed region More...
 
class  SPH::MultiPolygonShape
 A shape whose geometry is defined by a multi polygon. More...
 

Namespaces

 SPH
 

Typedefs

typedef model::polygon< model::d2::point_xy< Real > > SPH::boost_poly
 
typedef model::multi_polygon< boost_poly > SPH::boost_multi_poly
 

Detailed Description

Here, we define the 2D geometric algortihms. they are based on the boost library.

The idea is to define complex geometry based on shapes, usually multi-polygon using boost library. we propose only very simple combinaton that the region is composed of shapes without intersection. That is, the shapes are those contain each other or without overlap. This strict requirement suggests that complex shapes should be finished already in modeling using related binary operations before it is included.

Author
Luhui Han, Chi ZHang and Xiangyu Hu