opFitSpline simply not working, randomly, even with valid points

joshtargo
joshtargo Member Posts: 695 EDU

script is here:

https://cad.onshape.com/documents/cc4e811a68209246c3d6a244/w/99faf8c3a688d2acb43db83e/e/ed415a3e3f1f9618ed93d8dc?renderMode=0&uiState=6723d388b042933aa7f9bd0b

2024-10-31 14 57 29.png 2024-10-31 14 57 22.png 2024-10-31 14 57 14.png

Best Answer

  • joshtargo
    joshtargo Member Posts: 695 EDU
    Answer ✓

    @S1mon yeah, I tested with DrawFS and it fails if there is a loop. crazy. I added an exception and error message in my radius FS, which is getting pretty good now.

Answers

  • S1mon
    S1mon Member Posts: 4,638 PRO

    Perhaps create the hairs, and try using the regular 3DFitSpline feature manually to see if you get better feedback?

    Some guesses would be that the resulting curve has a cusp, a loop (where it would intersect) or a couple input points which are too close together.

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • joshtargo
    joshtargo Member Posts: 695 EDU
    Answer ✓

    @S1mon yeah, I tested with DrawFS and it fails if there is a loop. crazy. I added an exception and error message in my radius FS, which is getting pretty good now.