mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
ifcchat: update ifopsh to latest wasm wheel
This commit is contained in:
@@ -29,16 +29,7 @@ async function ensurePyodide() {
|
|||||||
const micropip = pyodide.pyimport("micropip");
|
const micropip = pyodide.pyimport("micropip");
|
||||||
micropip.install("python-dateutil")
|
micropip.install("python-dateutil")
|
||||||
|
|
||||||
// Detect python minor version (3.12 vs 3.13) and pick a matching wheel.
|
const wheelUrl = "https://ifcopenshell.github.io/wasm-wheels/ifcopenshell-0.8.5-cp313-cp313-pyodide_2025_0_wasm32.whl";
|
||||||
const pyVer = pyodide.runPython(`
|
|
||||||
import sys
|
|
||||||
f"{sys.version_info.major}.{sys.version_info.minor}"
|
|
||||||
`);
|
|
||||||
|
|
||||||
const wheelUrl =
|
|
||||||
pyVer === "3.13"
|
|
||||||
? "https://ifcopenshell.github.io/wasm-wheels/ifcopenshell-0.8.3+34a1bc6-cp313-cp313-emscripten_4_0_9_wasm32.whl"
|
|
||||||
: "https://ifcopenshell.github.io/wasm-wheels/ifcopenshell-0.8.2+d50e806-cp312-cp312-emscripten_3_1_58_wasm32.whl";
|
|
||||||
|
|
||||||
await micropip.install(wheelUrl);
|
await micropip.install(wheelUrl);
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,15 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcPointByDistanceExpression* i
|
|||||||
if (inst->OffsetVertical().has_value()) {
|
if (inst->OffsetVertical().has_value()) {
|
||||||
auto offset_vertical = inst->OffsetVertical().get() * length_unit_;
|
auto offset_vertical = inst->OffsetVertical().get() * length_unit_;
|
||||||
o += offset_vertical * z;
|
o += offset_vertical * z;
|
||||||
|
|
||||||
|
auto tmp1 = (z * offset_vertical).eval();
|
||||||
|
auto tmp2 = (Eigen::Vector3d(0, 0, 1) * offset_vertical).eval();
|
||||||
|
auto tmp3 = (tmp1 - tmp2).eval();
|
||||||
|
|
||||||
|
std::ostringstream oss;
|
||||||
|
oss << "local z: " << z.x() << "," << z.y() << "," << z.z() << "; delta: " << tmp3.x() << "," << tmp3.y() << "," << tmp3.z();
|
||||||
|
auto osss = oss.str();
|
||||||
|
std::wcout << osss.c_str() << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inst->OffsetLongitudinal().has_value()) {
|
if (inst->OffsetLongitudinal().has_value()) {
|
||||||
|
|||||||
@@ -3256,7 +3256,7 @@ void arrange_cgal_polygons(svgfill::arrange_polygon_settings settings, const std
|
|||||||
double threshold;
|
double threshold;
|
||||||
clean_noisy_paths(debug_output, arr, segment_lookup, threshold);
|
clean_noisy_paths(debug_output, arr, segment_lookup, threshold);
|
||||||
remove_colinear_vertices(arr);
|
remove_colinear_vertices(arr);
|
||||||
clean_noisy_bounds(debug_output, arr, segment_lookup, threshold);
|
// clean_noisy_bounds(debug_output, arr, segment_lookup, threshold);
|
||||||
}
|
}
|
||||||
|
|
||||||
t0.stop();
|
t0.stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user