Skip to content

Commit

Permalink
Merge pull request #674 from guoxiliu/dev
Browse files Browse the repository at this point in the history
Compact Triangulation Integration
  • Loading branch information
julien-tierny authored Dec 13, 2021
2 parents 117a473 + 62e09a8 commit 518dabb
Show file tree
Hide file tree
Showing 30 changed files with 5,584 additions and 20 deletions.
14 changes: 14 additions & 0 deletions CMake/debug_widgets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@
<Documentation>Debug level.</Documentation>
</IntVectorProperty>

<DoubleVectorProperty
name="CompactTriangulationCacheSize"
label="Compact Triangulation Cache Size"
command="SetCompactTriangulationCacheSize"
number_of_elements="1"
default_values="0.2">
<DoubleRangeDomain name="range" min="0.0" max="1.0" />
<Documentation>
Set the cache size for the compact triangulation as a
ratio with respect to the total cluster number.
</Documentation>
</DoubleVectorProperty>

<Property name='Debug_Execute'
label='Execute'
command='Modified'
Expand All @@ -50,5 +63,6 @@
<Property name='Debug_UseAllCores' />
<Property name='Debug_ThreadNumber' />
<Property name='Debug_DebugLevel' />
<Property name='CompactTriangulationCacheSize' />
<Property name='Debug_Execute' />
</PropertyGroup>
2 changes: 2 additions & 0 deletions core/base/abstractTriangulation/AbstractTriangulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
ttk::Triangulation::Type::IMPLICIT, ttk::ImplicitTriangulation, call); \
ttkTemplateMacroCase(ttk::Triangulation::Type::PERIODIC, \
ttk::PeriodicImplicitTriangulation, call); \
ttkTemplateMacroCase( \
ttk::Triangulation::Type::COMPACT, ttk::CompactTriangulation, call); \
}

namespace ttk {
Expand Down
3 changes: 3 additions & 0 deletions core/base/common/DataTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ namespace ttk {
const char PersistenceName[] = "Persistence";
const char PersistencePairTypeName[] = "PairType";

// default name for compact triangulation index
const char compactTriangulationIndex[] = "ttkCompactTriangulationIndex";

/// default value for critical index
enum class CriticalType {
Local_minimum = 0,
Expand Down
11 changes: 11 additions & 0 deletions core/base/compactTriangulation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

ttk_add_base_library(compactTriangulation
SOURCES
CompactTriangulation.cpp
HEADERS
CompactTriangulation.h
DEPENDS
abstractTriangulation
skeleton
Boost::boost
)
Loading

0 comments on commit 518dabb

Please sign in to comment.