GemPyToRex¶
-
class
subsurface.writer.to_rex.gempy_to_rexfile.
GemPyToRex
(geo_model=None)[source]¶ Bases:
object
Methods Summary
__call__
([geo_model, meshes, material, …])- param meshes
default_values
(app)- param app
gempy_color_to_rex_material
(surface_df[, …])gempy_meshes_to_rex
(surface_df[, …])Write mesh to Rexfile.
grab_meshes
(geo_model)Check if surfaces are computed. And return a pandas.DataFrame with
grab_topography
(geo_model)hex_to_rgb
(hex[, normalize])Transform colors from hex to rgb
mesh_prepare_and_encode
(rex_bytes, …[, …])Methods Documentation
-
__call__
(geo_model=None, meshes=True, material=True, surfaces=None, topography=True, app='GemPlay')[source]¶ - Parameters
meshes –
surfaces (list) – Subset of surfaces to send to the client
app (str) – Either RexViewer or GemPlay. Set of default values
Returns:
-
static
default_values
(app)[source]¶ - Parameters
app –
- Returns
flip_yz, backside, vertex_color
- Return type
list
-
gempy_meshes_to_rex
(surface_df, topography_dict=None, flip_yz=False, backside=True, vertex_color=False)[source]¶ Write mesh to Rexfile.
- Parameters
surface_df –
topography_dict –
flip_yz – Fliping YZ coordinates. Rexview need this
backside – If True, create a second set of triangles on the backside of the mesh
vertex_color –
Returns:
Notes
At the moment 14.07.2020 it is not possible to write normals or texture
-
static
grab_meshes
(geo_model)[source]¶ - Check if surfaces are computed. And return a pandas.DataFrame with
the meshes to be converted
- Parameters
geo_model –
Returns:
-
static
hex_to_rgb
(hex: str, normalize: bool = True) → numpy.ndarray[source]¶ Transform colors from hex to rgb