Jump to content
Sign in to follow this  
Patrick Winkler

ConvertToPolygon() - Resolution

Recommended Posts

I'm not sure which resoltuion to use for ConvertToPolygon().  http://developer.vectorworks.net/index.php/VS:ConvertToPolygon

 

<50 is obvious to less.

90 and 100 convert a cirlce to 32pt polys and 150 to 64 pt polys.

In this case 90 should be enough as even in renderworks my eyes can't spot a difference to the higher resolutions.

 

It would be good to know how the resoltution effects the outcome (why do 90, 100 create the same ) and if there is a maximum value.

 

5a1d23c5ef017_Bildschirmfoto2017-11-28um09_50_59.thumb.png.c98411b4b790fee8cedd0c8d4aea51fa.png

 

regards, Patrick

Share this post


Link to post

Patrick,

   The resolution number is not linear, but makes transitions at powers of 2. The number of sides generated is also a power of 2.

 

Conversion resolutions of:

0-7 yield 2 sides;

8-15 yield 4 sides;

16-31 yield 8 sides;

32-63 yield 16 sides;

etc., up to 512 which yields 256 sides. Values higher than 512 all yield 256 sides.

 

HTH,

Raymond

Share this post


Link to post

I don't mind at all. Add away. One thing to keep in mind, this conversion ratio works for a single curve segment, as a Circle, Arc, or Oval. For complex (multiple) curves, like those existing in a Polyline or Rounded Rectangle, the number of segments created using this relation is per curve.

 

Raymond

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×