SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
io
ModelToMesh.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
#ifndef smtk_io_ModelToMesh_h
11
#define smtk_io_ModelToMesh_h
12
13
#include "smtk/CoreExports.h"
// For SMTKCORE_EXPORT macro.
14
#include "
smtk/PublicPointerDefs.h
"
15
16
namespace
smtk
17
{
18
namespace
model
19
{
20
class
Model;
21
}
22
23
namespace
io
24
{
25
class
SMTKCORE_EXPORT
ModelToMesh
26
{
27
public
:
28
//By default will merge duplicate elements, and will use the default tolerance
29
//specified by mergeCoincidentContactPoints
30
ModelToMesh
();
31
32
//By default will merge duplicate elements
33
bool
isMergingEnabled()
const
{
return
m_mergeDuplicates; }
34
void
setIsMerging(
bool
m) { m_mergeDuplicates = m; }
35
36
//Allow you to specify a custom tolerance for the merging of duplicate elements
37
double
getMergeTolerance()
const
{
return
m_tolerance; }
38
void
setMergeTolerance(
double
tol) { m_tolerance = tol; }
39
40
//convert smtk::model::resource to a smtk::mesh::resource
41
smtk::mesh::ResourcePtr
operator()(
const
smtk::model::ResourcePtr
& modelResource)
const
;
42
//convert smtk::model to a smtk::mesh::resource
43
smtk::mesh::ResourcePtr
operator()(
const
smtk::model::Model
& model)
const
;
44
45
private
:
46
bool
m_mergeDuplicates{
true
};
47
double
m_tolerance{ -1 };
48
};
49
}
// namespace io
50
}
// namespace smtk
51
52
#endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
PublicPointerDefs.h
smtk::io::ModelToMesh
Definition:
ModelToMesh.h:25
smtk::mesh::ResourcePtr
smtk::shared_ptr< smtk::mesh::Resource > ResourcePtr
Definition:
PublicPointerDefs.h:363
smtk::model::Model
A entityref subclass that provides methods specific to models.
Definition:
Model.h:30
smtk::model::ResourcePtr
smtk::shared_ptr< smtk::model::Resource > ResourcePtr
Definition:
PublicPointerDefs.h:426
Generated by
1.8.17