Subtract tests (#6913)
* add subtract test and cleanup some other tests Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fmt Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
		@ -1,15 +0,0 @@
 | 
			
		||||
startProfile(startSketchOn(XY), at = [0, 0])
 | 
			
		||||
  |> xLine(length = 10, tag = $line000)
 | 
			
		||||
  |> yLine(length = 10, tag = $line001)
 | 
			
		||||
  |> xLine(endAbsolute = profileStartX(%), tag = $line002)
 | 
			
		||||
  |> close(tag = $line003)
 | 
			
		||||
  |> extrude(length = 10)
 | 
			
		||||
  |> fillet(
 | 
			
		||||
       radius = 1,
 | 
			
		||||
       tags = [
 | 
			
		||||
         line003,
 | 
			
		||||
         getNextAdjacentEdge(line000),
 | 
			
		||||
         getPreviousAdjacentEdge(line001)
 | 
			
		||||
       ],
 | 
			
		||||
     )
 | 
			
		||||
 | 
			
		||||
@ -1,53 +0,0 @@
 | 
			
		||||
d_wrist_circumference = [22.8, 10.7, 16.4, 18.5]
 | 
			
		||||
width = d_wrist_circumference[0] + d_wrist_circumference[1] + d_wrist_circumference[2] + d_wrist_circumference[3]
 | 
			
		||||
length = 120.0
 | 
			
		||||
hand_thickness = 24.0
 | 
			
		||||
corner_radius = 5.0
 | 
			
		||||
 | 
			
		||||
// At first I thought this was going to be symmetric,
 | 
			
		||||
// but I measured intentionally to not be symmetric,
 | 
			
		||||
// because your wrist isn't a perfect cylindrical surface
 | 
			
		||||
brace_base = startSketchOn(XY)
 | 
			
		||||
  |> startProfile(at = [corner_radius, 0])
 | 
			
		||||
  |> line(end = [width - corner_radius, 0.0])
 | 
			
		||||
  |> tangentialArc(end = [corner_radius, corner_radius])
 | 
			
		||||
  |> yLine(length = 25.0 - corner_radius)
 | 
			
		||||
  |> tangentialArc(end = [-corner_radius, corner_radius])
 | 
			
		||||
  |> xLine(length = -(d_wrist_circumference[0] - (corner_radius * 2)))
 | 
			
		||||
  |> tangentialArc(end = [-corner_radius, corner_radius])
 | 
			
		||||
  |> yLine(length = length - 25.0 - 23.0 - (corner_radius * 2))
 | 
			
		||||
  |> tangentialArc(end = [corner_radius, corner_radius])
 | 
			
		||||
  |> xLine(length = 15.0 - (corner_radius * 2))
 | 
			
		||||
  |> tangentialArc(end = [corner_radius, corner_radius])
 | 
			
		||||
  |> yLine(length = 23.0 - corner_radius)
 | 
			
		||||
  |> tangentialArc(end = [-corner_radius, corner_radius])
 | 
			
		||||
  |> xLine(length = -(hand_thickness + 15.0 + 15.0 - (corner_radius * 2)))
 | 
			
		||||
  |> tangentialArc(end = [-corner_radius, -corner_radius])
 | 
			
		||||
  |> yLine(length = -(23.0 - corner_radius))
 | 
			
		||||
  |> tangentialArc(end = [corner_radius, -corner_radius])
 | 
			
		||||
  |> xLine(length = 15.0 - (corner_radius * 2))
 | 
			
		||||
  |> tangentialArc(end = [corner_radius, -corner_radius])
 | 
			
		||||
  |> yLine(length = -(length - 25.0 - 23.0 - (corner_radius * 2)))
 | 
			
		||||
  |> tangentialArc(end = [-corner_radius, -corner_radius])
 | 
			
		||||
  |> xLine(length = -(d_wrist_circumference[1] + d_wrist_circumference[2] + d_wrist_circumference[3] - hand_thickness - corner_radius))
 | 
			
		||||
  |> tangentialArc(end = [-corner_radius, -corner_radius])
 | 
			
		||||
  |> yLine(length = -(25.0 - corner_radius))
 | 
			
		||||
  |> tangentialArc(end = [corner_radius, -corner_radius])
 | 
			
		||||
  |> close()
 | 
			
		||||
 | 
			
		||||
inner = startSketchOn(XY)
 | 
			
		||||
  |> startProfile(at = [0, 0])
 | 
			
		||||
  |> xLine(length = 1.0)
 | 
			
		||||
  |> tangentialArc(end = [corner_radius, corner_radius])
 | 
			
		||||
  |> yLine(length = 25.0 - (corner_radius * 2))
 | 
			
		||||
  |> tangentialArc(end = [-corner_radius, corner_radius])
 | 
			
		||||
  |> xLine(length = -1.0)
 | 
			
		||||
  |> tangentialArc(end = [-corner_radius, -corner_radius])
 | 
			
		||||
  |> yLine(length = -(25.0 - (corner_radius * 2)))
 | 
			
		||||
  |> tangentialArc(end = [corner_radius, -corner_radius])
 | 
			
		||||
  |> close()
 | 
			
		||||
 | 
			
		||||
final = brace_base
 | 
			
		||||
  |> subtract2d(tool = inner)
 | 
			
		||||
  |> extrude(length = 3.0)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user