USER FORUM
(you are viewing a thread; or go back to list of threads)
Import data from a text file (by Chinmay)
Is there a possibility of importing coordinates of a spline from a text file? Solvespace is extremely intuitive but I haven't figured out a way of inputting airfoil curves, for example. It's not easy to click and constrain a hundred airfoil coordinates and it's not a good idea of eye-ball the curve. Any possibility of this in the future (not DXF, just plain text will do)?
Thank you!
Thank you!
(no subject) (by whitequark)
I think you could place a set of points, add the "lock where dragged" constraint, and edit the savefile, which is a simple text-based format, directly.
(no subject) (by Blinkenlight)
If you want to import an arbitrary spline then yeah it might be a bit difficult - but if your splines happen to be Cubic Beziers, you do know SolveSpace can already insert those, right?
(no subject) (by Chinmay)
Yes, I have dealt with Beziers a good bit in SolveSpace. It is possible to approximate an airfoil curve using splines, but there could be regions where the spline is not true to the coordinates of the original airfoil. Bugs aerodynamicists more than it should!
I am trying to write a script to generate an SLVS file with the coordinates inserted in as whitequark suggested. Trying to decipher how the constraint IDs, point IDs, etc. are assigned values.
Thanks for the responses.
I am trying to write a script to generate an SLVS file with the coordinates inserted in as whitequark suggested. Trying to decipher how the constraint IDs, point IDs, etc. are assigned values.
Thanks for the responses.
Post a reply to this comment: