I am making a trim tool that creates base trim, casing, and crown molding by creating a face and extruding it on multiple paths. I gather input from the user to create the trim. Should I use vectors or regular points? Here’s some of my code.
#Input for trim
prompts = ["Casing Thickness: ", "Casing Width:", "R:", "G:", "B:"]
defaults = [0.75, 3, 255.0, 255.0, 255.0]
list = ["", "", "", "", ""]
input = UI.inputbox(prompts, defaults, list, "Casing")
return unless input
thickness,width,red,green,blue=input
case axis
when X_AXIS
[ [0,0,0], [width,0,0], [0,thickness,0], [width,thickness,0] ]
when Y_AXIS
[ [0,0,0], [0,width,0], [thickness,0,0], [thickness,width,0] ]
when Z_AXIS
[ [0,0,0], [0,0,width], [thickness,0,0], [thickness,0,width] ]
end
end