MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / PolygonModule

Method PolygonModule

src/module/polygonmodule.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include "vectorvalue.h"
24
25PolygonModule::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
34Node* PolygonModule::evaluate(const Context& ctx) const
35{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected