Forum

Author Topic: Cannot access shapes boundaries in python  (Read 2723 times)

Gall

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Cannot access shapes boundaries in python
« on: February 03, 2017, 05:01:58 PM »
Hello,

the boundary attribute of the Shape instance is not accessible through the Python API. Instead it seems to be bounded to the type attribute :
Code: [Select]
>>> shape.boundary = PhotoScan.Shape.OuterBoundary
2017-02-03 14:58:46 Traceback (most recent call last):
2017-02-03 14:58:46   File "<console>", line 1, in <module>
2017-02-03 14:58:46 TypeError: value must be PhotoScan.Shape.Type, not
>>> shape.type
2017-02-03 15:01:05 PhotoScan.Shape.Type.Polygon
>>> shape.boundary
2017-02-03 15:01:09 PhotoScan.Shape.Type.Polygon

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Re: Cannot access shapes boundaries in python
« Reply #1 on: February 03, 2017, 05:04:43 PM »
Hello Gall,

The issue is fixed in already available 1.3 pre-release version.
Best regards,
Alexey Pasumansky,
Agisoft LLC