mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 02:24:30 +00:00
@@ -220,7 +220,7 @@ void ColladaSerializer::ColladaExporter::ColladaScene::add(
|
||||
COLLADASW::InstanceGeometry instanceGeometry(mSW);
|
||||
instanceGeometry.setUrl("#" + geom_name);
|
||||
BOOST_FOREACH(const std::string &material_name, material_ids) {
|
||||
// Unescape to avoid double escaping beucase OpenCollada's material URI parameter escapes XML internally
|
||||
// Unescape to avoid double escaping because OpenCollada's material URI parameter escapes XML internally
|
||||
std::string unescaped = material_name;
|
||||
IfcUtil::unescape_xml(unescaped);
|
||||
|
||||
@@ -371,7 +371,7 @@ void ColladaSerializer::ColladaExporter::ColladaMaterials::write() {
|
||||
std::string material_name = getMaterialUri(material);
|
||||
openMaterial(material_name);
|
||||
|
||||
// Unescape to avoid double escaping beucase OpenCollada's addInstanceEffect escapes XML internally
|
||||
// Unescape to avoid double escaping because OpenCollada's addInstanceEffect escapes XML internally
|
||||
IfcUtil::unescape_xml(material_name);
|
||||
|
||||
addInstanceEffect("#" + material_name + "-fx");
|
||||
|
||||
@@ -931,7 +931,7 @@ void SvgSerializer::write(const geometry_data& data) {
|
||||
TopoDS_Shape* compound_to_hlr = &compound_to_use;
|
||||
TopoDS_Shape subtracted_shape;
|
||||
if (any_in_front && any_behind && data.product->declaration().is("IfcSlab") && is_floor_plan_) {
|
||||
// This is currently ony for slanted roof slabs on floor plans
|
||||
// This is currently only for slanted roof slabs on floor plans
|
||||
bool should_cut = false;
|
||||
TopExp_Explorer exp(compound_to_use, TopAbs_FACE);
|
||||
for (; exp.More(); exp.Next()) {
|
||||
@@ -1382,7 +1382,7 @@ void SvgSerializer::write(const geometry_data& data) {
|
||||
const gp_Pnt& pa = points[i];
|
||||
const gp_Pnt& pb = points[j];
|
||||
// Since the text is always displayed horizontally,
|
||||
// the distance is not simply euclidian, but we
|
||||
// the distance is not simply euclidean, but we
|
||||
// favour the x-component;
|
||||
const double d = std::sqrt(
|
||||
10 * ((pa.X() - pb.X()) * (pa.X() - pb.X())) +
|
||||
|
||||
Reference in New Issue
Block a user