swh:1:snp:6088ab52ef49920e01e3f334cdf4d5d6c8a822b9
Raw File
Tip revision: a82ffee7e4b95d07c7674ec5e1e536f086212adc authored by renchao_lu on 01 May 2021, 18:46:01 UTC
[CL] replacement with operator[] func.
Tip revision: a82ffee
GMSHPoint.h
/**
 *
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#pragma once

// GeoLib
#include "GeoLib/Point.h"

namespace FileIO
{
namespace GMSH
{
class GMSHPoint final : public GeoLib::Point
{
public:
    GMSHPoint(GeoLib::Point const& pnt, std::size_t id, double mesh_density);
    void write(std::ostream& os) const override;

private:
    double _mesh_density;
};

/** overload the output operator for class GMSHPoint */
std::ostream& operator<< (std::ostream &os, GMSHPoint const& p);

}  // end namespace GMSH
}  // end namespace FileIO
back to top