Geometric Points at Polylines Extremities

Next
 From:  Frenchy Pilou (PILOU)
11691.1 
By Michael Gibson

script:/* Create point at polyline ends */ var objs = moi.geometryDatabase.getSelectedObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if ( obj.isCurve ) { var all_lines = true; var segs = obj.getSubObjects(); for ( var j = 0; j < segs.length; ++j ) { if ( !segs.item(j).isLine ) { all_lines = false; break; } } if ( all_lines ) { for ( var j = 0; j < segs.length; ++j ) { var line = segs.item(j); var f = moi.command.createFactory('point'); f.setInput( 0, line.getEndPt() ); f.commit(); } } } }


script:/* Create point at polyline start & ends */ var objs = moi.geometryDatabase.getSelectedObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if ( obj.isCurve ) { var all_lines = true; var segs = obj.getSubObjects(); for ( var j = 0; j < segs.length; ++j ) { if ( !segs.item(j).isLine ) { all_lines = false; break; } } if ( all_lines ) { for ( var j = 0; j < segs.length; ++j ) { var line = segs.item(j); var f = moi.command.createFactory('point'); f.setInput( 0, line.getEndPt() ); f.commit(); if ( j == 0 &&!segs.item(j).isClosed ) { var f2 = moi.command.createFactory('point'); f2.setInput( 0, line.getStartPt() ); f2.commit(); } } } } }

---
Pilou
Is beautiful that please without concept!
My Moi French Site
  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:  Psygorn (DRILLBIT)
11691.2 In reply to 11691.1 
Hi PILOU,

More examples please :-)
  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:  Frenchy Pilou (PILOU)
11691.3 In reply to 11691.2 
@ Psygorn
Of course :)

It can be used for make a "ghost volume", "ghost surface"...etc only by points...

Of course you can hide the Polylines



Then free to you to draw any objects on these points! ;)
By Copy to Points by Michael or _Vclone By Max Smirnov



Then free to you to use any render or better & funny some AI ;)
Here the free Vizcom with just an image, but you can also import inside a 3D file! .fbx / .glb / .obj (accepts NGons from Moi! )

Pearl bracelet 100 % influence (Ps I have forgotten to hide edges before the snapshot image! ;)


Organic Architecture 100 % influence


Organic Architecture 60 % influence


Organic Architecture 60 % influence


Organic Architecture 50 % influence

EDITED: 6 Apr by PILOU

  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