Hello,
You want to use the library "Graphics.Implicit". Documentation for it
can be found here:
https://hackage.haskell.org/package/implicit-0.0.3/docs/Graphics-Implicit.html
Example (that I haven't tested, there may be syntax errors):
module pdms_slab(distance_output_port_from_center)
{
width=distance_output_port_from_center*3;
translate ([width/-2,width/-2]) square(size=[width, width]);
}
would become something like:
pdms_slab distance_output_port_from_center =
translate [width/-2,width/-2] rectR 0 [0,0] [width, width]
where width = distance_output_port_from_center*3
Or, slightly cleaner:
pdms_slab distance_output_port_from_center =
rectR 0 [-width, -width] [width, width]
where width = distance_output_port_from_center*3/2
I no longer maintain ImplicitCAD. Julia Longtin (who I think is also
on this list) does. I will leave further comments to her.
All the best,
Chris
colah.github.io
> --
> You received this message because you are subscribed to the Google Groups "ImplicitCAD" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
implicitcad...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.