wiki:public/doc-auto/by_ext/gli/H_polyline
Last modified 3 years ago Last modified on 01/21/16 13:49:10

Input file gli keyword #POLYLINE

Description

This keyword indicates a topological description of a polyline or polygon. Each polyline definition includes a name and a list of point numbers. Polygons are defined in the same way as polylines, with the only difference that the first and last point are identical.

Subkeywords

  • $NAME - A polyline name can be used to assign boundary conditions, source terms, output or initial conditions (see IC, BC, ST and OUT file description). The names (char) themselves are written in the subsequent line under the sub-keyword $NAME.
  • $POINTS - indicates a following list of points, which only includes the point numbers of the above already defined points. The order of the points defines the topology, i.e. the point to point connections.

Examples

#POINTS
0 0.0 0.0 0.0
1 0.0 750 0.0
2 1000 750 0.0
3 1000 0 0.00
4 500 375 0.0 $NAME POINT4
5 600 375 0.0 $NAME POINT5
#POLYLINE
 $NAME
 left_bc
 $POINTS
 0
 1
#POLYLINE
 $NAME
 right_bc
 $POINTS
 2
 3
#POLYLINE
 $NAME
 top_bc
 $POINTS
 1
 2
#POLYLINE
 $NAME
 bottom_bc
 $POINTS
 3   
 0
#POLYLINE
 $NAME
 polygon
 $POINTS
 0
 1
 2
 3
 0
 #STOP

Documentation from doxygen

None.

Used in benchmarks

Source code reading this keyword from Input files

FileIO/OGSIOVer4.cpp line 254

 254: 		std::cerr << "*** readPolylines input stream error " << "\n";
 255: 		return std::string("");
 256: 	}
 257: 	std::string tag("#POLYLINE");
 258: 
 256: 	}
 257: 	std::string tag("#POLYLINE");
 258: 
 259: 	while (!in.eof() && tag.find("#POLYLINE") != std::string::npos)
 259: 	while (!in.eof() && tag.find("#POLYLINE") != std::string::npos)
 260: 		tag = readPolyline(in, ply_vec, ply_vec_names, pnt_vec,
 260: 		tag = readPolyline(in, ply_vec, ply_vec_names, pnt_vec,
 261: 		                   zero_based_indexing, pnt_id_map, path, errors);
 262: 

 625: 	// read names of plys into temporary string-vec
 626: 	std::map<std::string,size_t>* ply_names (new std::map<std::string,size_t>);
 627: 	std::vector<Polyline*>* ply_vec(new std::vector<Polyline*>);
 628: 	if (tag.find("#POLYLINE") != std::string::npos && in)
 629: 	{
 630: 		std::cout << "read polylines from stream ... " << std::flush;
 631: 		tag = readPolylines(in, ply_vec, *ply_names, *pnt_vec,

GEO/geo_ply.cpp line 525

 525: 			break;
 526: 
 527: 		//----------------------------------------------------------------------
 528: 		if (line_string.find("#POLYLINE") != string::npos) // keyword found
 529: 		{
 530: 			m_polyline = new CGLPolyline();
 531: 			position = m_polyline->Read(gli_file); // CC8888, TF

Last modified: 2016-01-21 13:49:01.008581

This page has been generated automatically. Do not edit it manually! It will be overwritten in regular intervals.

If you want to edit the handwritten part of this page, please do so here.