From a057a20b71ba85cbd9fb61e4f3cc7401b60dd40e Mon Sep 17 00:00:00 2001 From: abn Date: Fri, 5 Feb 2016 13:05:38 +0100 Subject: [PATCH] getSkewField(): documentation. --- src/MEDCoupling/MEDCouplingUMesh.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 66153a584..b50bae909 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -6549,6 +6549,11 @@ MEDCouplingFieldDouble *MEDCouplingUMesh::getWarpField() const * Creates a new MEDCouplingFieldDouble holding Skew factor values of all * cells of \a this 2D mesh in 3D space. Currently cells of the following types are * treated: INTERP_KERNEL::NORM_QUAD4. + * The skew is computed as follow for a quad with points (a,b,c,d): let + * \f$u=\vec{ab}+\vec{dc}\f$ and \f$v=\vec{ac}+\vec{bd}\f$ + * then the skew is computed as: + * \f$s=\frac{u}{|u|}\cdot\frac{v}{|v|}\f$ + * * For a cell of other type an exception is thrown. * \return MEDCouplingFieldDouble * - a new instance of MEDCouplingFieldDouble on * cells and one time, lying on \a this mesh. The caller is to delete this -- 2.39.2