Salome HOME
projects
/
tools
/
medcoupling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
addition of MEDCouplingUMesh::conformize2D to conformize a 2D mesh
[tools/medcoupling.git]
/
src
/
INTERP_KERNEL
/
Geometric2D
/
InterpKernelGeo2DEdgeLin.cxx
diff --git
a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx
b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx
index 8adb7dac82f7d6b44a80ab5689cbe4b4e9563619..d50a2411cb11f9ad5a45dbbfb32edc6c9fda315e 100644
(file)
--- a/
src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx
+++ b/
src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx
@@
-273,6
+273,15
@@
void EdgeLin::getBarycenterOfZone(double *bary) const
bary[1]=(x1-x2)*(y1*(y1+y2)+y2*y2)/6.;
}
bary[1]=(x1-x2)*(y1*(y1+y2)+y2*y2)/6.;
}
+/*!
+ * Here \a this is not used (contrary to EdgeArcCircle class).
+ */
+void EdgeLin::getMiddleOfPoints(const double *p1, const double *p2, double *mid) const
+{
+ mid[0]=(p1[0]+p2[0])/2.;
+ mid[1]=(p1[1]+p2[1])/2.;
+}
+
double EdgeLin::getCurveLength() const
{
double x=(*_start)[0]-(*_end)[0];
double EdgeLin::getCurveLength() const
{
double x=(*_start)[0]-(*_end)[0];