import uk.co.nickthecoder.foocad.smartextrusion.v1.* import static uk.co.nickthecoder.foocad.smartextrusion.v1.SmartExtrusion.* class TapEndCap : Model { @Custom var internalDiameter = 6.2 override fun build() : Shape3d { val outside = Circle( internalDiameter/2 + 1.8 ) .smartExtrude( 6 ) .bottom( ProfileEdge.roundedChamfer(2) ) .top( Chamfer(0.5) ) val inside = Circle( internalDiameter/2 ) .smartExtrude( 6 ) .bottom( Chamfer(0.5) ) .bottomTo(1) return outside - inside } }