Message Boards Message Boards

0
|
5804 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Simple (?) Problem finding a distance from a B Spline Surface

Posted 9 years ago

Hi all, I'm having a problem with the following code. I have a list of points (conpts) to build a BSpline Surface. I want to find the minimum distance of that surface from a given ponit (test). NArgMin works on the norm of the surface, but not when substracting a vector "test" (last line). Why not? Any help would be welcom!

RScreeshot

POSTED BY: Oliver D
3 Replies

I get the same problem (of course with different data)! I checked the bspline function with ParametricPlot3D to make sure there were no kinks, intersections or such that would spoof NArgMin (NMinimize). Also tried defining/submitting: func[u?NumericQ, v?NumericQ]:= Norm[...] to NArgMin to no avail.

POSTED BY: Frank Iannarilli
func[u_?NumericQ, v_?NumericQ] := Norm[srffn[u, v] - test]
POSTED BY: Frank Iannarilli
Posted 9 years ago

Thanks, Frank! Seems like a bug. All I can do is write a manual loop to minimze the distance from a test point to the surface. Back to low level programming! :-(

POSTED BY: Oliver D
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract