Dometyl.Walls
module Side : sig ... end
module Sides : sig ... end
val auto_body :
?d1:[ `Abs of float | `Rel of float ] ->
?d2:float ->
?north_clearance:float ->
?south_clearance:float ->
?side_clearance:float ->
?n_steps:Wall.Steps.t ->
?min_step_dist:float ->
?scale:OCADml.V2.t ->
?scale_ez:(OCADml.V2.t * OCADml.V2.t) ->
?end_z:float ->
?index_scale:OCADml.V2.t ->
?north_lookup:(int -> bool) ->
?south_lookup:(int -> bool) ->
?west_lookup:(int -> bool) ->
?east_lookup:(int -> bool) ->
Plate.t ->
Sides.t
Use Sides.auto
to generate a Sides.t
from the body of the provided Plate.t
.
val auto_thumb :
?d1:[ `Abs of float | `Rel of float ] ->
?d2:float ->
?north_clearance:float ->
?south_clearance:float ->
?side_clearance:float ->
?n_steps:Wall.Steps.t ->
?min_step_dist:float ->
?scale:OCADml.V2.t ->
?scale_ez:(OCADml.V2.t * OCADml.V2.t) ->
?end_z:float ->
?north_lookup:(int -> bool) ->
?south_lookup:(int -> bool) ->
?west_lookup:(int -> bool) ->
?east_lookup:(int -> bool) ->
Plate.t ->
Sides.t
Use Sides.auto
to generate a Sides.t
from the thumb of the provided Plate.t
.
val manual :
body_west:Side.config ->
body_north:Side.config ->
body_east:Side.config ->
body_south:Side.config ->
thumb_south:Side.config ->
thumb_north:Side.config ->
thumb_east:Side.config ->
thumb_west:Side.config ->
Plate.t ->
t
manual ~body_west ~body_north ~body_east ~body_south ~thumb_south
~thumb_south ~thumb_north ~thumb_east ~thumb_west plate
A helper that passes along the given Side.config
s to Sides.manual_body
and Sides.manual_thumb
to construct a t
.
val to_scad : t -> OSCADml.Scad.d3