RINGMesh  Version 5.0.0
A programming library for geological model meshes
RINGMesh::GeoModelBuilderML Class Referencefinal

Build a GeoModel from a Gocad Model3D (file_model.ml) More...

#include <geomodel_builder_gocad.h>

Inheritance diagram for RINGMesh::GeoModelBuilderML:
RINGMesh::GeoModelBuilderGocad RINGMesh::GeoModelBuilderFile< DIMENSION > RINGMesh::GeoModelBuilder< DIMENSION > RINGMesh::GeoModelBuilderBase< DIMENSION >

Public Member Functions

 GeoModelBuilderML (GeoModel3D &geomodel, std::string filename)
 
- Public Member Functions inherited from RINGMesh::GeoModelBuilderGocad
 GeoModelBuilderGocad (GeoModel3D &geomodel, std::string filename)
 
void read_file ()
 Parses the file and loads the GeoModel. More...
 
- Public Member Functions inherited from RINGMesh::GeoModelBuilderFile< DIMENSION >
 GeoModelBuilderFile (GeoModel< DIMENSION > &geomodel, std::string filename)
 
void build_geomodel ()
 
- Public Member Functions inherited from RINGMesh::GeoModelBuilderBase< DIMENSION >
virtual ~GeoModelBuilderBase ()=default
 
void end_geomodel ()
 Finish up geomodel building and complete missing information. More...
 
void build_corners_from_lines ()
 
void build_lines_and_corners_from_surfaces ()
 

Private Member Functions

void load_file () final
 Loads and builds a GeoModel from a Gocad .ml file. More...
 
void read_line () final
 Reads the first word of the current line (keyword) and executes the good action with the information of the line. More...
 

Private Attributes

MLLoadingStorage ml_load_storage_
 

Additional Inherited Members

- Public Attributes inherited from RINGMesh::GeoModelBuilderBase< DIMENSION >
GeoModelBuilderTopology< DIMENSION > topology
 
GeoModelBuilderGeometry< DIMENSION > geometry
 
GeoModelBuilderGeology< DIMENSION > geology
 
GeoModelBuilderRemoval< DIMENSION > removal
 
GeoModelBuilderRepair< DIMENSION > repair
 
GeoModelBuilderCopy< DIMENSION > copy
 
GeoModelBuilderInfo< DIMENSION > info
 
- Protected Member Functions inherited from RINGMesh::GeoModelBuilderBase< DIMENSION >
 GeoModelBuilderBase (GeoModelBuilder< DIMENSION > &builder, GeoModel< DIMENSION > &geomodel)
 
void cut_geomodel_on_internal_boundaries ()
 
template<>
void cut_geomodel_on_internal_boundaries ()
 
template<>
void cut_geomodel_on_internal_boundaries ()
 
- Protected Attributes inherited from RINGMesh::GeoModelBuilderGocad
GEO::LineInput file_line_ { filename_ }
 
- Protected Attributes inherited from RINGMesh::GeoModelBuilderFile< DIMENSION >
std::string filename_ {}
 
- Protected Attributes inherited from RINGMesh::GeoModelBuilderBase< DIMENSION >
GeoModel< DIMENSION > & geomodel_
 
GeoModelAccess< DIMENSION > geomodel_access_
 

Detailed Description

Build a GeoModel from a Gocad Model3D (file_model.ml)

Definition at line 735 of file geomodel_builder_gocad.h.

Constructor & Destructor Documentation

◆ GeoModelBuilderML()

RINGMesh::GeoModelBuilderML::GeoModelBuilderML ( GeoModel3D &  geomodel,
std::string  filename 
)
inline

Definition at line 738 of file geomodel_builder_gocad.h.

Member Function Documentation

◆ load_file()

void RINGMesh::GeoModelBuilderML::load_file ( )
finalprivatevirtual

Loads and builds a GeoModel from a Gocad .ml file.

Warning
Pretty unstable. Crashes if the file is not exactly what is expected.

Correspondance between Gocad::Model3D entities and GeoModel entities is :

Implements RINGMesh::GeoModelBuilderFile< DIMENSION >.

Definition at line 1844 of file geomodel_builder_gocad.cpp.

◆ read_line()

void RINGMesh::GeoModelBuilderML::read_line ( )
finalprivatevirtual

Reads the first word of the current line (keyword) and executes the good action with the information of the line.

Uses the MLLineParser factory

Implements RINGMesh::GeoModelBuilderGocad.

Definition at line 1852 of file geomodel_builder_gocad.cpp.

Member Data Documentation

◆ ml_load_storage_

MLLoadingStorage RINGMesh::GeoModelBuilderML::ml_load_storage_
private

Definition at line 771 of file geomodel_builder_gocad.h.


The documentation for this class was generated from the following files: