creating lines

Technical discussions
Post Reply
Steve J
Posts: 3
Joined: Tue Oct 15, 2013 6:39 am

creating lines

Post by Steve J »

Hi
Are there any samples of how to dynamically create lines in the light control ( Or is it not possible?)
Steve

AngelaI
Posts: 2
Joined: Tue Aug 13, 2013 1:38 am

Re: creating lines

Post by AngelaI »

Hi Steve
There are three ways (approximately :) )

1) You can call IStdShape.Line(DIPoint* pt0, DIPoint* pt1)
2) Using IDIObjGenerator.Create*((int)EObjectType.eObjTypeLineStrip) call
3) By importing a VRML file with "IndexedLineSet" node.

With the first method you get a straight line. You can modify it to make curve by adding internal points.

See the code in Init() method of the Lines example. Unfortunately there is only C++ version, but it should be clear. Search for LinesDlg::Init() in LinesDlg.cpp in any text editor

See also http://www.dynoinsight.com/Help/Geom/LineStrips.aspx

Kind regards
Angela

Post Reply