Export nurbs curve details
All  1-3  4-6

Previous
Next
 From:  Michael Gibson
10444.4 In reply to 10444.3 
Hi miquik, there is an evaluator available to scripts, see the "scripting" section here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8814.1

Or also you can use the factory for the "ArrayCurve" command to generate points at equal distances along a curve, see the ReconstructCurve command for an example:
http://kyticka.webzdarma.cz/3d/moi/#ReconstructCurve

There will likely be SVG support coming for MoI v5.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  miquik
10444.5 In reply to 10444.4 
Thanks Michael,
I would like to implement SVG export anyway now. I almost done, just one thing is missing: can I obtain viewport width/height? I need to create the projection matrix but these properties seem hidden.

Thanks
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
10444.6 In reply to 10444.5 
Hi miquik,

re:
> I would like to implement SVG export anyway now. I almost done, just one thing is missing: can
> I obtain viewport width/height? I need to create the projection matrix but these properties seem hidden.

There are .pixelWidth and .pixelHeight properties on a viewport object, so something like:
var width = moi.ui.mainWindow.viewpanel.getViewport('3D').pixelWidth;

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-3  4-6