I am new to 3D and am a classical guitarist with bad fingernails, so I have to use fake nails. The fake nails that I buy require a lot of trimming, so I want to design a nail that fits my fingers without modification.
I design the nails in 2 ways. Method 1 uses a 3-point arc to shape the nail and the code is as follows:
import cadquery as cq
result =
(cq.Workplane().moveTo(0,8).lineTo(10,8).threePointArc((18,0),(10,-8)).lineTo(0,-8))
result = result.close()
result = result.extrude(0.7) #Nail thickness
which produces the following result:
It looks like a fingernail, but doesn’t curve around the finger. It’s too flat.
Method 2 uses 2 circles and the code is as follows:
import cadquery as cq
result =(cq.Workplane().circle(4).circle(3).extrude(8).moveTo(4,0).rect(8,8).cutBlind(12))
which produces the following result:
It looks like a fingernail, but I don’t know how to trim the top so that it has the curve of the nail at the end of the finger.
If either of the above ways is close, any comments on how to complete the fingernail would be appreciated. If I’m totally off base, please suggest another approach.
Thanks
--
cadquery home: https://github.com/CadQuery/cadquery
post issues at https://github.com/CadQuery/cadquery/issues
run it at home at : https://github.com/CadQuery/CQ-editor
---
You received this message because you are subscribed to the Google Groups "CadQuery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cadquery+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cadquery/d91c140e-8eae-45d0-b766-3a64d489a267n%40googlegroups.com.