Hi
Are there any samples of how to dynamically create lines in the light control ( Or is it not possible?)
Steve
creating lines
Re: creating lines
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
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