/usr/include/gmsh/GEdgeCompound.h is in libgmsh-dev 3.0.6+dfsg1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | // Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to the public mailing list <gmsh@onelab.info>.
#ifndef _GEDGE_COMPOUND_H_
#define _GEDGE_COMPOUND_H_
#include "GFace.h"
#include "GEdge.h"
// A GEdgeCompound is a model edge that is the compound of model edges.
class GEdgeCompound : public GEdge {
protected:
std::vector<GEdge*> _compound;
std::vector<int> _orientation;
std::vector<double> _pars;
void orderEdges();
public:
void parametrize();
bool getLocalParameter(const double &t, int &iEdge, double & tLoc) const;
GEdgeCompound(GModel *m, int tag, std::vector<GEdge*> &compound);
GEdgeCompound(GModel *m, int tag, std::vector<GEdge*> &compound,
std::vector<int> &orientation); // confidence in the input
virtual ~GEdgeCompound();
Range<double> parBounds(int i) const;
virtual GPoint point(double par) const;
virtual SVector3 firstDer(double par) const;
virtual GEntity::GeomType geomType() const { return CompoundCurve; }
ModelType getNativeType() const { return GmshModel; }
void * getNativePtr() const { return 0; }
virtual double curvature(double t) const;
virtual double curvatures(const double par, SVector3 *dirMax, SVector3 *dirMin,
double *curvMax, double *curvMin) const;
virtual int minimumMeshSegments() const;
virtual int minimumDrawSegments() const;
std::vector<GEdge*> getCompounds() const { return _compound; }
};
void replaceMeshCompound(GFace*, std::list<GEdge*>&);
#endif
|