- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a way to use AddFixedCurve() that takes 3 points and a previous entity id, without a previous entity id? Like by sending some sort of null?
I cannot seem to extract the information required to recreate fixed 3 point arcs properly. The only one without an entity requirement that looks like it could work for me is the Point3d, Vector3d, Point3d version and taking StartDirection to use for the Vector3d. Except for the ridiculousness of how alignment creation tools require Point3d/Vector3d/Enums and the properties actually stored on the alignments are Point2d/Doubles/Booleans.
I'm currently using
private Vector3d vectorize(double dir) { return new Vector3d(Math.Sin(dir), Math.Cos(dir), 0); }to convert between the directions given from any of the AlignmentEntities. Maybe that isn't the right thing? Because I'm getting some horrible results doing fixed curves (StartDirection) but it seems to work for float curves (DirectionAtPoint2).
Any help or hints would be appreciated. Pretty much the rest of the code is just pulling info from one alignment and using that to recreate the entities in another. Works perfectly for most things except these dang fixed curves.
Solved! Go to Solution.