mirror of https://gitlab.com/pamhyr/pamhyr2
debug meshing again...
parent
d66e75c183
commit
b20a4c3c3d
|
|
@ -47,6 +47,10 @@ class InternalMeshing(AMeshingTool):
|
||||||
if profiles is None:
|
if profiles is None:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
for p in profiles:
|
||||||
|
if len(p) < 1:
|
||||||
|
return []
|
||||||
|
|
||||||
guide_list = self.get_guide_list(reach, profiles)
|
guide_list = self.get_guide_list(reach, profiles)
|
||||||
if guide_list is None:
|
if guide_list is None:
|
||||||
return []
|
return []
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,11 @@ logger = logging.getLogger()
|
||||||
|
|
||||||
class TableModel(PamhyrTableModel):
|
class TableModel(PamhyrTableModel):
|
||||||
def get_true_data_row(self, row):
|
def get_true_data_row(self, row):
|
||||||
bc = self._data.data[row]
|
|
||||||
|
if len(self._data.data) > 0:
|
||||||
|
bc = self._data.data[row]
|
||||||
|
else:
|
||||||
|
return 0
|
||||||
|
|
||||||
return next(
|
return next(
|
||||||
map(
|
map(
|
||||||
|
|
|
||||||
|
|
@ -320,7 +320,7 @@ class MeshingCommand(QUndoCommand):
|
||||||
for i in range(self._limites[1] - self._limites[0]):
|
for i in range(self._limites[1] - self._limites[0]):
|
||||||
k += 1
|
k += 1
|
||||||
for p in self._new_profiles[i]:
|
for p in self._new_profiles[i]:
|
||||||
self._reach.insert_profile(k, p)
|
self._reach.insert_profile(k, p.cloned_for(self._reach))
|
||||||
k += 1
|
k += 1
|
||||||
|
|
||||||
# Update selection
|
# Update selection
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue