max vertex for OASIS

Hi,
There is gds2_max_vertex_count option for GDS file to control max vertex count of polygon in output file.

However, how to control max vertex count for OASIS?
Our tools have 8192 vertex limitation for OASIS file.

Thanks,
Dion

Comments

  • Hi Doin,

    OASIS does not have a vertex limit. That's one of the advantages of OASIS.

    To limit the vertex count, save to GDS and convert to OASIS.

    If you want to emulate the algorithm of the GDS writer, here is the implementation:

    • Iterate over all polygons
    • If an polygon has more than the maximum number of vertexes, use Polygon#split to break it into parts
    • Apply the second rule recursively to the parts you obtain from Polygon#split

    Matthias

Sign In or Register to comment.