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

Method SquareModule

src/module/squaremodule.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "vectorvalue.h"
23
24SquareModule::SquareModule(Reporter& r) : PrimitiveModule(r,"square")
25{
26 addDescription(tr("Constructs a square or rectangle. It will be placed in the first quadrant."));
27 addParameter("size",tr("The size of the square"));
28 addParameter("center",tr("Specifies whether to center the square on the xy plane"));
29}
30
31Node* SquareModule::evaluate(const Context& ctx) const
32{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected