I recently just discovered the tool to generate a B-spline curve by formula in Microstation V8i. It works great.
The problem I have now is to fit this curve into a circle of certain radius. I wonder if there is any tools for doing so.
I am actually working on a wheel flat problem in railways which is like a Haversine curve (to represent the flat). I attached a picture for clarity...
zeywery said:The problem I have now is to fit this B-spline curve into a circle
Please clarify what you want:
Regards, Jon Summers LA Solutions
I think it will be on the lines of applying curvature to the B-spline to match the circle. But the B-spline should still follow a Haversine but now "curved" in a sense...
Sorry for the confusion. Thank you.
zeywery said:I think it will be on the lines of applying curvature to the B-spline to match the circle
I think you need a formula for the B-spline that takes into account the circle. That is, an entirely mathematical solution. However, I'm unsure of that because a Haversine is already a formula for 3D calculations on a sphere.
Though I don't doubt Jon's suggestion of a mathematical solution, I can't begin to touch the math on this question. I do, however, have a hunch that you can get a geometric solution to it using GenerativeComponents, which has bsplineCurveByFunction. You might try to sample the source curve, project those points to another curve, and then redraw a spline through the projected points. Or, draw a spline through the points, then use the formula to displace just the points you wish to move (which would also give you continuity to the rest of the circle). It is just a hunch, though, and I'm not suggesting that there is not a way in MicroStation :^)
what about doing this in 3d to create the wheel circle then turn the havesine into a 3d surface extrude then use the stencil tool to drape the haversine shape onto the wheel it then should gouge out the herversine suface shape to the edge of the wheel and you just rotate the view back to front to see the results... just guessing as we have no data to play with... the depth of the wheel ie the side view thick and the side view thick ness of the havesine shape need to be the same and centres aligned first before the stencil ( drape remove is the result)...
Currently Using V8iss10 (8.11.09.919)
and dabbling in CE update 16 (10.16.00.80)
Pwise Administrator ( yeah I passed the training course!)
MicroStation user since 1990 Melbourne Australia.click link to PM me