SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
mesh
moab
RandomPoint.h
1
//=========================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//=========================================================================
10
11
#ifndef smtk_mesh_moab_RandomPoint_h
12
#define smtk_mesh_moab_RandomPoint_h
13
14
#include "smtk/CoreExports.h"
15
16
#include "smtk/geometry/queries/RandomPoint.h"
17
18
#include "smtk/mesh/core/MeshSet.h"
19
20
#include "smtk/resource/Component.h"
21
22
#include <array>
23
24
namespace
smtk
25
{
26
namespace
mesh
27
{
28
namespace
moab
29
{
30
33
struct
SMTKCORE_EXPORT
RandomPoint
34
:
public
smtk::resource::query::DerivedFrom
<RandomPoint, smtk::geometry::RandomPoint>
35
{
36
RandomPoint
() =
default
;
37
38
std::array<double, 3> operator()(
const
smtk::resource::Component::Ptr&)
const override
;
39
40
std::array<double, 3> operator()(
const
smtk::mesh::MeshSet
&)
const
;
41
42
void
seed(std::size_t seed)
override
{ m_seed = seed; }
43
44
private
:
45
std::size_t m_seed{ 0 };
46
};
47
}
// namespace moab
48
}
// namespace mesh
49
}
// namespace smtk
50
51
#endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::mesh::MeshSet
Definition:
MeshSet.h:42
smtk::resource::query::DerivedFrom
Query functors can be registered to Resources as the implementation of a base (and often abstract) Qu...
Definition:
DerivedFrom.h:34
smtk::mesh::moab::RandomPoint
An API for computing a random point on a geometric resource component.
Definition:
RandomPoint.h:33
Generated by
1.8.17