Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[V8i VBA] B-Spline Curve Methods broken?

$
0
0

I'm attempting to use BSplineCurve.EvaluatePointTangent.  It seems to yield incorrect results. 

I want to find curve parameters at a point on a B-Spline curve.  EvaluatePointTangent computes a point in some unexpected way.  The result looks correct when parameter u is 0 or 1, but not between those values.

The attached VBA project lets you pick a B-Spline curve element, then it attempts to find the tangent at the hit point.  It marks the point that EvaluatePointTangent returns, but it is visibly incorrect.

[View:/cfs-file/__key/communityserver-discussions-components-files/343173/TangentCalculator.mvba:235:0]

  1. Copy the project to a well-known location, such as \Workspace\Standards\VBA
  2. Run the macro using key-in:
    vba run [TangentCalculator]modMain.Main
  3. Select a B-spline curve and compare the marker point with your pick location
  4. Look at the information in VBA's Immediate window


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>