mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Add .ttl + Well Known Text geometry serializer
This commit is contained in:
@@ -570,3 +570,13 @@ class serializers:
|
||||
hdf5 = ifcopenshell_wrapper.HdfSerializer
|
||||
except:
|
||||
pass
|
||||
|
||||
# ttl is always available since it doesn't depend on any C++ libraries,
|
||||
# just people might be using an outdated binary
|
||||
if hasattr(ifcopenshell_wrapper, 'TtlWktSerializer'):
|
||||
@staticmethod
|
||||
def ttl(
|
||||
out_filename: Union[str, serializers.buffer], geometry_settings: settings, settings: serializer_settings
|
||||
) -> ifcopenshell_wrapper.SvgSerializer:
|
||||
out_filename = transform_string(out_filename)
|
||||
return ifcopenshell_wrapper.TtlWktSerializer(out_filename, geometry_settings, settings)
|
||||
|
||||
Reference in New Issue
Block a user