OManifold.Sdf2
2d signed-distance functions (extrudable to 3d)
val circle : float -> t
val square : ?round:float -> OCADml.v2 -> t
val rounded_box :
?tl:float ->
?tr:float ->
?bl:float ->
?br:float ->
OCADml.v2 ->
t
val rhombus : ?round:float -> OCADml.v2 -> t
elongate h
Elongate the 2d sdf t
by the xy distance vector h
. Basically, the field is split and moved apart by h
in each dimension and connected.
extrude ~height t
Extrude the 2d signed distance field t
into a 3d field extending height /. 2.
above and below the xy plane.