Replace Closed Curves With Circle

 From:  Karsten (KMRQUS)
8080.2 In reply to 8080.1 
Hello Mindset,

the problem is caused by a little mistake in the circle-factories input. Index 1 needs a coordinateframe that defines the position and orientation in space. Index 2 you won't need (Point on the radius - not the center!!!) its alternative to Index 3 -> the radius (mode set in Index 0). You've evaluate the coordinateframe from the view, but You have to create a individual coordinateframe for every circle. Something like this
var circcenter=moi.vectorMath.createFrame(center,plane.xaxis,plane.yaxis);

Good luck!
Karsten

p.s.: dist/2 != radius

EDITED: 5 Sep 2016 by KMRQUS