vtk-m2/vtkm/worklet/testing
Kenneth Moreland 75a060a243 Fix cell derivatives for polygon cell shape
For polygon cell shapes (that are not triangles or quadrilaterals),
interpolations are done by finding the center point and creating a
triangle fan around that point. Previously, the gradient was computed in
the same way as interpolation: identifying the correct triangle and
computing the gradient for that triangle.

The problem with that approach is that makes the gradient discontinuous
at the boundaries of this implicit triangle fan. To make things worse,
this discontinuity happens right at each vertex where gradient
calculations happen frequently. This means that when you ask for the
gradient at the vertex, you might get wildly different answers based on
floating point imprecision.

Get around this problem by creating a small triangle around the point in
question, interpolating values to that triangle, and use that for the
gradient. This makes for a smoother gradient transition around these
internal boundaries.
2019-08-29 17:37:42 -06:00
..
CMakeLists.txt fixed error in TetrahedralizedExplicit, rename MarchineCubes to Contour 2019-08-19 11:45:58 -06:00
UnitTestAverageByKey.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestBoundingIntervalHierarchy.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestCellAverage.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestCellDeepCopy.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestCellGradient.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestCellMeasure.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestCellSetConnectivity.cxx change MarchingCubes to Contour that was missed before merge 2019-08-19 08:56:11 -06:00
UnitTestCellSetDualGraph.cxx rename MarchingCubes to Contour 2019-08-17 19:10:57 -06:00
UnitTestClipping.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestClippingWithFunction.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestContour.cxx Add checks for size of contour worklet outputs 2019-08-22 08:28:53 -06:00
UnitTestContourTreeUniform.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestContourTreeUniformAugmented.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestCoordinateSystemTransform.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestCosmoTools.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestCrossProduct.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestDotProduct.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestExternalFaces.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestExtractGeometry.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestExtractPoints.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestExtractStructured.cxx Merge topic 'ExtractStructured' 2019-05-30 20:23:08 -04:00
UnitTestFieldHistogram.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestFieldStatistics.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestGraphConnectivity.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestImageConnectivity.cxx Merge branch 'master' into contour_hackathon 2019-08-18 14:49:08 -06:00
UnitTestInnerJoin.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestKdTreeBuildNNS.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestKeys.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestMagnitude.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestMask.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestMaskIndices.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestMaskPoints.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestMaskSelect.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestNDimsEntropy.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestNDimsHistMarginalization.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestNDimsHistogram.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestNormalize.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestOrientNormals.cxx Ensure that the serial device is enabled during part of OrientNormals test. 2019-08-26 16:44:24 -04:00
UnitTestParticleAdvection.cxx Adding changes for validating integrator step 2019-08-05 10:39:25 -07:00
UnitTestPointElevation.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestPointGradient.cxx Fix cell derivatives for polygon cell shape 2019-08-29 17:37:42 -06:00
UnitTestPointTransform.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestProbe.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestRemoveUnusedPoints.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestScalarsToColors.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestScatterAndMask.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestScatterCounting.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestScatterPermutation.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestSplatKernels.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestSplitSharpEdges.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestStreamingSine.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestStreamLineUniformGrid.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestStreamSurface.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestSurfaceNormals.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestTemporalAdvection.cxx Merging Dave's particle status rename changes 2019-08-05 10:58:52 -06:00
UnitTestTetrahedralize.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestThreshold.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestThresholdPoints.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestTriangleWinding.cxx Rename shadowing typedef in TriangleWinding test. 2019-08-21 15:04:07 -04:00
UnitTestTriangulate.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestTube.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestVertexClustering.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestWarpScalar.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestWarpVector.cxx Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
UnitTestWaveletCompressor.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestWaveletGenerator.cxx Provide simplified way to construct point and cell fields 2019-08-15 11:03:41 -04:00
UnitTestWholeCellSetIn.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestWorkletMapField.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestWorkletMapFieldExecArg.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestWorkletMapFieldWholeArray.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestWorkletMapFieldWholeArrayAtomic.cxx Limit testing dispatch of atomic array to only atomic types. 2019-08-23 15:40:37 -04:00
UnitTestWorkletMapPointNeighborhood.cxx Add methods to BoundaryState to query specific offsets. 2019-07-19 15:09:57 -04:00
UnitTestWorkletMapTopologyExplicit.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestWorkletMapTopologyUniform.cxx Refactor topology mappings to clarify meaning. 2019-08-06 11:27:26 -04:00
UnitTestWorkletReduceByKey.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestZFPCompressor.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00