mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Points: Fix point insertions pamhyr_id creation and default value.
This commit is contained in:
1 parent
1457db721b
commit
f9a8512477
3 files changed
+13
-4
No files matched your search
@@ -28,7 +28,7 @@ from Model.Geometry.Point import Point
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
class PointXYZ(Point, SQLSubModel):
|
||||
class PointXYZ(Point):
|
||||
_sub_classes = []
|
||||
|
||||
def __init__(self, id: int = -1,
|
||||
@@ -302,6 +302,9 @@ class PointXYZ(Point, SQLSubModel):
|
||||
self._z = float(value)
|
||||
self.modified()
|
||||
|
||||
def get_coordinate(self):
|
||||
return (self._x, self._y, self._z)
|
||||
|
||||
def is_nan(self):
|
||||
"""
|
||||
Returns:
|
||||
|
||||
Reference in new issue
Block a user