Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine if a point lies on a spline?

Status
Not open for further replies.

DanStaves

Mechanical
Joined
May 28, 2013
Messages
1
Location
US
Hi,

I'm trying to figure out if two splines are equal. When a user selects a spline using the 'singe curve' option, the NXOpen API doesn't allow me to see which spline was selected. It does, however, create a temporary spline. Unfortunately, after plugging this temporary spline into a 'CreateStudioSplineBuilderEX' and getting out the points, and comparing the temporary spline to the original, only the first and last point are the same, with different points in between. The original spline has 5 points associated with it while the temporary one has 6. They splines should be shaped exactly the same.

Is there a method in NX that could tell you if a point lies on a curve?
 
Dan, if you measure distance from point to curve and you get zero. You can also check deviation between cutves to make sure they are identical.

NX7.5 + TC8.3
 
I don't think you can use the grip program for comparison of two curves, but you can use it to determine if a point lies on a curve.

Best regards,

Michaël.

NX7.5.4.4 + TC Unified 8.3
Win 7 64 bit (Intel(R) Xeon(R) CPU X5650 @2.67GHz)
24.0 GB
NVIDIA Quadro 4000 + NVIDIA Tesla C2050

 
 http://files.engineering.com/getfile.aspx?folder=da0cd9e0-440c-46bd-9849-1cd556c218e1&file=Pts_Along_Curve_to_txt-file.grx
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top