VTK  9.7.20261123
vtkDGBezierFindCriticalPoints.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3#ifndef vtkDGBezierFindCriticalPoints_h
4#define vtkDGBezierFindCriticalPoints_h
5
6#include "vtkDGCell.h" // For Shape
8#include "vtkFiltersCellGridModule.h" // For export macro.
9
10#include <array>
11#include <vector>
12
13namespace vtk
14{
15namespace basis
16{
18namespace bezier
19{
20VTK_ABI_NAMESPACE_BEGIN
21
22// Thread safety: every function below may be called concurrently from
23// different threads, which is how vtkDGFindCriticalPointsResponder solves a
24// grid's cells in parallel. Each thread keeps its own working memory, reused
25// from one call to the next, so a call allocates little beyond the points it
26// returns; the basisOp and gradOp passed in are only evaluated, never
27// rebound.
28
32struct VTKFILTERSCELLGRID_EXPORT CriticalPoint
33{
34 std::array<double, 3> Parameter{ { 0., 0., 0. } };
35 double Value{ 0. };
44 std::array<double, 3> Gradient{ { 0., 0., 0. } };
45};
46
66VTKFILTERSCELLGRID_EXPORT double EvaluateField(vtkDGOperatorEntry& basisOp,
67 vtkDGOperatorEntry& gradOp, int dimension, const std::vector<double>& coefficients,
68 const std::array<double, 3>& point, std::array<double, 3>& gradient);
69
141VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindPrismaticInteriorCriticalPoints(
142 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
143 const std::vector<double>& coefficients);
144
167VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindPrismaticBoundaryCriticalPoints(
168 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
169 const std::vector<double>& coefficients);
170
176VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindPrismaticCriticalPoints(
177 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
178 const std::vector<double>& coefficients);
179
252VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindBarycentricInteriorCriticalPoints(
253 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
254 const std::vector<double>& coefficients);
255
284VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindBarycentricBoundaryCriticalPoints(
285 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
286 const std::vector<double>& coefficients);
287
293VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindBarycentricCriticalPoints(
294 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
295 const std::vector<double>& coefficients);
296
340VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindWedgeInteriorCriticalPoints(
341 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
342 const std::vector<double>& coefficients);
343
375VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindWedgeBoundaryCriticalPoints(
376 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
377 const std::vector<double>& coefficients);
378
384VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindWedgeCriticalPoints(
385 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
386 const std::vector<double>& coefficients);
387
428VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindPyramidInteriorCriticalPoints(
429 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
430 const std::vector<double>& coefficients);
431
456VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindPyramidBoundaryCriticalPoints(
457 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
458 const std::vector<double>& coefficients);
459
465VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindPyramidCriticalPoints(
466 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
467 const std::vector<double>& coefficients);
468
471VTKFILTERSCELLGRID_EXPORT std::vector<CriticalPoint> FindCriticalPoints(vtkDGCell::Shape shape,
472 vtkDGOperatorEntry& basisOp, vtkDGOperatorEntry& gradOp, const std::vector<int>& order,
473 const std::vector<double>& coefficients);
474
475VTK_ABI_NAMESPACE_END
476} // namespace bezier
477} // namespace basis
478} // namespace vtk
479
480#endif // vtkDGBezierFindCriticalPoints_h
Shape
All possible shapes for DG cells.
Definition vtkDGCell.h:71
A record for a basis in a function space that is specific to one cell shape.
A function space for basis functions expressed in the Bernstein-Bezier basis.
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindWedgeBoundaryCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point (minimum, maximum, or saddle) of a scalar Bezier cell-attribute on the bo...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindPrismaticBoundaryCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point (minimum, maximum, or saddle) of a scalar Bezier cell-attribute on the pa...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindWedgeInteriorCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point (minimum, maximum, or saddle) of a scalar Bezier cell-attribute strictly ...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindPyramidCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point of a scalar Bezier cell-attribute on one pyramid cell,...
VTKFILTERSCELLGRID_EXPORT double EvaluateField(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, int dimension, const std::vector< double > &coefficients, const std::array< double, 3 > &point, std::array< double, 3 > &gradient)
Evaluate a scalar Bezier field and its gradient at a parametric point.
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindCriticalPoints(vtkDGCell::Shape shape, vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Find every critical point of a cell of the given shape, dispatching to the Find*CriticalPoints() entr...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindPrismaticCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point of a scalar Bezier cell-attribute on one tensor-product cell,...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindPyramidBoundaryCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point (minimum, maximum, or saddle) of a scalar Bezier cell-attribute on the bo...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindPyramidInteriorCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point (minimum, maximum, or saddle) of a scalar Bezier cell-attribute strictly ...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindBarycentricInteriorCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point (minimum, maximum, or saddle) of a scalar Bezier cell-attribute strictly ...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindPrismaticInteriorCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point (minimum, maximum, or saddle) of a scalar Bezier cell-attribute strictly ...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindBarycentricCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point of a scalar Bezier cell-attribute on one barycentric cell,...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindBarycentricBoundaryCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point (minimum, maximum, or saddle) of a scalar Bezier cell-attribute on the bo...
VTKFILTERSCELLGRID_EXPORT std::vector< CriticalPoint > FindWedgeCriticalPoints(vtkDGOperatorEntry &basisOp, vtkDGOperatorEntry &gradOp, const std::vector< int > &order, const std::vector< double > &coefficients)
Locate every critical point of a scalar Bezier cell-attribute on one wedge cell, interior and boundar...
A namespace for finite-element basis functions.
Specialization of tuple ranges and iterators for vtkAOSDataArrayTemplate.
One critical point located by FindPrismaticCriticalPoints(), FindBarycentricCriticalPoints(),...
std::array< double, 3 > Gradient
The field's slope along each parametric axis at Parameter, when the search that produced the point ha...
int EntityDimension
The dimension of the cell entity (volume, face, or edge) this point was found on - equal to the cell'...