Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for idx, points in enumerate(layer_points):
- for point in points:
- point_coords = point[:2]
- hatch_texts = point[2:]
- hatch_texts_sorted = sorted(hatch_texts, key=get_priority)
- point_shapely = Point(*point_coords)
- for i, polygon in enumerate(polygons):
- if polygon.contains(point_shapely) and i not in added_areas:
- out_loop = [acadModel.AddPolyline(ADouble(all_cycles[i]))]
- for loop in out_loop:
- loop.Layer = 'Литологические границы'
- for text in hatch_texts_sorted:
- hatch = acadModel.AddHatch(0, text, True)
- hatch.AppendOuterLoop(variants(out_loop))
- hatch.Evaluate()
- hatch.Layer = 'Литология'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement