mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 19:30:25 +00:00
Last minute refactoring
This commit is contained in:
@@ -35,18 +35,18 @@ plugin::metadata plugin_metadata() {
|
||||
return geometry_serializer_plugin_metadata("ttl");
|
||||
}
|
||||
|
||||
boost::shared_ptr<GeometrySerializer> create_serializer(const geometry_serializer_context& context) {
|
||||
boost::shared_ptr<geometry_serializer> create_serializer(const geometry_serializer_context& context) {
|
||||
if (context.output_temp_stream) {
|
||||
return boost::make_shared<TtlWktSerializer>(
|
||||
*context.output_temp_stream, context.geometry_settings, context.serializer_settings);
|
||||
return boost::make_shared<ttl_wkt_serializer>(
|
||||
*context.output_temp_stream, context.settings);
|
||||
}
|
||||
return boost::make_shared<TtlWktSerializer>(context.output_temp_filename, context.geometry_settings, context.serializer_settings);
|
||||
return boost::make_shared<ttl_wkt_serializer>(context.output_temp_filename, context.settings);
|
||||
}
|
||||
|
||||
void configure_serializer(geometry_serializer_context& context) {
|
||||
context.geometry_settings.get<ifcopenshell::geometry::settings::TriangulationType>().value = ifcopenshell::geometry::settings::POLYHEDRON_WITH_HOLES;
|
||||
if (context.serializer_settings.get<ifcopenshell::geometry::settings::WktUseSection>().get()) {
|
||||
context.geometry_settings.get<ifcopenshell::geometry::settings::IteratorOutput>().value = ifcopenshell::geometry::settings::NATIVE;
|
||||
context.settings.get<ifcopenshell::geom::settings::TriangulationType>().value = ifcopenshell::geom::settings::POLYHEDRON_WITH_HOLES;
|
||||
if (context.settings.get<ifcopenshell::geom::settings::WktUseSection>().get()) {
|
||||
context.settings.get<ifcopenshell::geom::settings::IteratorOutput>().value = ifcopenshell::geom::settings::NATIVE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user