geolime.objects.surface_api

Classes:

Surface(data, mesh, metadata)

Functions:

surface_from_csv(csv_file)

Create a surface object from a csv (table) file

surface_from_dataframe(dataframe)

Create a surface object from a pandas dataframe

surface_from_dxf(dxf)

Create a surface object from a dxf file

surface_from_stl(stl)

Create a surface object from a stl (cad) file

surface_to_stl(surface, file_name)

Export a geolime surface object to a stl file

geolime.objects.surface_api.surface_from_csv(csv_file: str)

Create a surface object from a csv (table) file

Parameters

csv_file (str) – Csv file having x,y and z columns

Returns

GeoLime surface object

Return type

Surface

geolime.objects.surface_api.surface_from_dataframe(dataframe: pandas.core.frame.DataFrame)

Create a surface object from a pandas dataframe

Parameters

dataframe (pd.DataFrame) – Description

Returns

GeoLime surface object

Return type

Surface

geolime.objects.surface_api.surface_from_dxf(dxf: str)

Create a surface object from a dxf file

Parameters

dxf (str) – Dxf file from customer

Returns

GeoLime surface object

Return type

Surface

geolime.objects.surface_api.surface_from_stl(stl: str)

Create a surface object from a stl (cad) file

Parameters

stl (str) – Stl file containing the triangulated surface

Returns

GeoLime surface object

Return type

Surface

geolime.objects.surface_api.surface_to_stl(surface: geolime.objects.surface.Surface, file_name: str)

Export a geolime surface object to a stl file

Parameters
  • surface (Surface) – GeoLime surface object

  • file_name (str) – Output name