Functions
clip_grid.hpp File Reference

A function that removes all points outside a shape. More...

#include <vector>
#include "../../tessellation/geometry.hpp"
#include "../../tessellation/shape_2d.hpp"
Include dependency graph for clip_grid.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

vector< Vector2Dclip_grid (const Shape2D &shape, const vector< Vector2D > &original)
 Removes all the points outside a shape. More...
 

Detailed Description

A function that removes all points outside a shape.

Author
Almog Yalinewich

Definition in file clip_grid.hpp.

Function Documentation

◆ clip_grid()

vector<Vector2D> clip_grid ( const Shape2D shape,
const vector< Vector2D > &  original 
)

Removes all the points outside a shape.

Parameters
shapeA shape
originalList of points
Returns
List of points inside the shape

Definition at line 4 of file clip_grid.cpp.