| 23 | #include "vectorvalue.h" |
| 24 | |
| 25 | PolygonModule::PolygonModule(Reporter& r,bool polygon) : |
| 26 | Module(r,polygon?"polygon":"polyline"), |
| 27 | type(polygon?PrimitiveTypes::Surface:PrimitiveTypes::Lines) |
| 28 | { |
| 29 | addDescription(polygon?tr("Constructs a polygon."):tr("Constructs a line connecting multiple points.")); |
| 30 | addParameter("points",tr("The vertices are provided by the points list.")); |
| 31 | addParameter("lines",tr("The lines are a list of indices to the vertices.")); |
| 32 | } |
| 33 | |
| 34 | Node* PolygonModule::evaluate(const Context& ctx) const |
| 35 | { |
nothing calls this directly
no outgoing calls
no test coverage detected