﻿# -*- coding: utf-8 -*-

geo.open(0, 1, u'geomagic-tmp-input.ply')

geo.remove_vertex_color()
geo.decimate_polygons(1, 6.15999, 6.15999, 2e-006, 811810, 0, 0, 3, 1, 1, 2, -1, -1, 5, -500075)

geo.mesh_doctor("smallcompsize", 0.00010795, "smalltunnelsize", 5.397e-005, "holesize", 5.397e-005, "spikesens", 50, "spikelevel", 0.5, "defeatureoption", 2, "fillholeoption", 2, "autoexpand", 2, "operations", "IntersectionCheck+", "SmallComponentCheck+", "Update", "Auto-Repair")
geo.clear_all()

geo.select_by_area(50)
geo.delete_triangles()

geo.saveas(u'geomagic-tmp-output.ply', 11, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, -1, 0, 1, 0)
