MoI discussion forum
MoI discussion forum

Full Version: Updates to the MoI API of David C Morrill

Show messages:  1-5  6-25  26-45  46-47

From: MO (MO_TE)
31 Aug 2023   [#46]
This is some information about the "calculateCurveOrientations" method. How it works and its properties. (Quotes from Michael)
"
You can generate an orientation list in script using:
var orient_list = moi.geometryDatabase. calculateCurveOrientations( ObjectListWithCurves );

This generates a list of CurveOrientation objects, one for each curve. Each CurveOrientation object has 2 properties .flipped and .seam .

The .flipped property will be true if the Blend should flip the curve before generating a blend from it, and the .seam parameter has a number value for the location of the seam point to use on a closed curve. The number is a normalized parameter value, a value of 0.0 means the start point of the curve, a value of 1.0 means the end domain of the curve.
"
Thank you Michael for clarifying this.
From: pressure (PEER)
1 Sep 2023   [#47] In reply to [#46]
Thanks MO and Michael for this info! I've updated the .htm to include this https://moi3d.com/forum/index.php?webtag=MOI&msg=10857.36

- Peer

Show messages:  1-5  6-25  26-45  46-47