laneway
Laneway
井巷工程 — 断面/巷道/竖井生成
推荐用法(无需实例化)
Laneway.get_section(SectionParam(type=0, width=2.0)) Laneway.get_lane_way_model(LanewayParam(section=..., polylines_set=...)) Laneway.get_lane_way_model(LanewayParam(section=..., polylines_set=..., shaft=True, angle=45.0))
Source code in dimine_python_sdk\lib\exploitation\laneway.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |
get_lane_way_model(param)
staticmethod
根据断面 + 中心线生成巷道或竖井
Parameters
param : LanewayParam or dict
巷道/竖井建模参数(dict 已废弃,会发出 DeprecationWarning)。
当 shaft=True 时切换为竖井建模,由 C++ 侧根据 shaft 字段区分;
angle 控制竖井水平旋转角度(度),范围 [0, 360)。
Returns
List[TINGeometry] 生成的巷道/竖井模型三角网列表
Raises
LanewayModelingError 底层返回空结果或抛出异常时包装
Source code in dimine_python_sdk\lib\exploitation\laneway.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |
get_section(param)
staticmethod
获取断面轮廓
Parameters
param : SectionParam or dict 断面参数(dict 已废弃,会发出 DeprecationWarning)
Returns
list or np.ndarray 断面轮廓点列表
Raises
SectionGenerateError 底层返回空结果或抛出异常时包装
Source code in dimine_python_sdk\lib\exploitation\laneway.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
LanewayError
Bases: RuntimeError
井巷工程异常基类
Source code in dimine_python_sdk\lib\exploitation\laneway.py
14 15 16 | |
LanewayModelingError
Bases: LanewayError
巷道建模失败
Source code in dimine_python_sdk\lib\exploitation\laneway.py
24 25 26 | |
SectionGenerateError
Bases: LanewayError
断面生成失败
Source code in dimine_python_sdk\lib\exploitation\laneway.py
19 20 21 | |