Hi Brian,
re:
> For the edges of a Box, I am getting 3 extra direction arrows, for each curve, exterior to
> the cube, In MoI4Beta.
The arrows have small one unit long lines on them, so they will stick out a little ways past the end of the curve. Right now there isn't any way set up to have just an arrowhead all by itself without a tail on it.
> Arrow colors different from the curves might be nice?
You could do this by setting up a style for the arrows. To do that create a style like this before the first call to UpdateDecorations() :
code:
var style = moi.geometryDatabase.addStyle();
var r = 0, g = 255, b = 0;
style.color = (r << 16) | (g << 8) | b;
UpdateDecorations( curves, points, dirs, style );
Modify the calls to UpdateDecoration() to pass the style in, and inside UpdateDecorations() when the arrow is created set its styleIndex property like this:
code:
if ( arrow )
{
>>>> arrow.styleIndex = style.index;
arrow.setHitTest( false );
dirs.addObject( arrow );
}
Then at the bottom below the last call to UpdateDecorations do style.remove();
- Michael
|