개정판 a7a8644d
fix cad
Change-Id: I635c818600e88d5cc33f5d97dc5a3c24a95ac185
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
1214 | 1214 |
loc = [min(min_extents[0], max_extents[0]), min(min_extents[1], max_extents[1])] |
1215 | 1215 |
|
1216 | 1216 |
origin = [math.ceil(_origin[0] - loc[0]), math.ceil(_origin[1] - loc[1])] |
1217 |
origin[0] = 0 if origin[0] <= 0 else (_width if origin[0] > _width else origin[0]) |
|
1218 |
origin[1] = 0 if origin[1] <= 0 else (_height if origin[1] > _height else origin[1]) |
|
1217 | 1219 |
|
1218 | 1220 |
points = [] |
1219 | 1221 |
if blk_ref_node.attrib['Nodes']: |
내보내기 Unified diff