Skip to content

Commit 10d1d6b

Browse files
committed
Merge remote-tracking branch 'upstream/master' into tutorial
2 parents 285682d + a34f357 commit 10d1d6b

File tree

73 files changed

+3301
-1200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3301
-1200
lines changed

src/Core/Algorithms/Math/GetMatrixSliceAlgo.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ GetMatrixSliceAlgo::GetMatrixSliceAlgo()
5252
{
5353
addParameter(Parameters::IsSliceColumn, true);
5454
addParameter(Parameters::SliceIndex, 0);
55+
addParameter(Parameters::MaxIndex, 0);
5556
addParameter(Parameters::PlayModeActive, false);
5657
//TODO DAN: make overload to handle const char*
5758
addOption(Parameters::PlayModeType, "looponce", "looponce|loopforever"); //TODO add more play options

src/Core/Datatypes/Legacy/Field/Field.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class SCISHARE Field : public Core::Datatypes::Datatype, public Core::Datatypes:
6161

6262
#ifdef SCIRUN4_CODE_TO_BE_ENABLED_LATER
6363
/// Detach the mesh from the field, if needed make a new copy of it.
64+
// NOTE: IF THIS FUNCTION IS CALLED IN LEGACY CODE, IT MUST BE CONVERTED TO A deep_clone CALL ON THE FIELD OBJECT
65+
// FYI detach() calls should be converted to clone() calls (shallow copy, only field data is copied, not the mesh).
6466
virtual void mesh_detach() = 0;
6567
#endif
6668
/// The order of the field: we could get this one from the type_description

src/Core/IEPlugin/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ SET(Core_IEPlugin_SRCS
4949
#StructHexVolField_Plugin.cc
5050
#StructQuadSurfField_Plugin.cc
5151
TriSurfField_Plugin.cc
52-
#TetVolField_Plugin.cc
52+
TetVolField_Plugin.cc
5353
)
5454

5555
SET(Core_IEPlugin_HEADERS
@@ -76,7 +76,7 @@ SET(Core_IEPlugin_HEADERS
7676
#StructHexVolField_Plugin.h
7777
#StructQuadSurfField_Plugin.h
7878
TriSurfField_Plugin.h
79-
#TetVolField_Plugin.h
79+
TetVolField_Plugin.h
8080
)
8181

8282
SCIRUN_ADD_LIBRARY(Core_IEPlugin

src/Core/IEPlugin/IEPluginInit.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <Core/IEPlugin/PointCloudField_Plugin.h>
3535
#include <Core/IEPlugin/CurveField_Plugin.h>
3636
#include <Core/IEPlugin/TriSurfField_Plugin.h>
37+
#include <Core/IEPlugin/TetVolField_Plugin.h>
3738
#include <Core/ImportExport/Field/FieldIEPlugin.h>
3839
#include <Core/ImportExport/Matrix/MatrixIEPlugin.h>
3940
#include <Core/IEPlugin/IEPluginInit.h>
@@ -73,4 +74,9 @@ void IEPluginManager::Initialize()
7374
static FieldIEPluginLegacyAdapter VtkFromTriSurfField_plugin("VtkToTriSurfField", "*.vtk", "", VtkToTriSurfField_reader, nullptr);
7475
static FieldIEPluginLegacyAdapter TriSurfFieldToExotxt_plugin("TriSurfFieldToExotxt", "*.ex2", "", nullptr, TriSurfFieldToExotxt_writer);
7576
static FieldIEPluginLegacyAdapter TriSurfFieldToExotxtBaseIndexOne_plugin("TriSurfFieldToExotxt[BaseIndex 1]", "*.ex2", "", nullptr, TriSurfFieldToExotxtBaseIndexOne_writer);
77+
78+
static FieldIEPluginLegacyAdapter TetVolField_plugin("TetVolField","*.elem *.tet *.pts *.pos", "", TextToTetVolField_reader, TetVolFieldToTextBaseIndexZero_writer);
79+
static FieldIEPluginLegacyAdapter TetVolFieldBaseIndexOne_plugin("TetVolField[BaseIndex 1]", "*.tet *.pts", "", nullptr, TetVolFieldToTextBaseIndexOne_writer);
80+
static FieldIEPluginLegacyAdapter JHU_elemsPtsFileToTetVol_plugin("JHUFileToTetVol","*.elem *.tet *.pts *.pos", "", TextToTetVolField_reader, nullptr);
81+
static FieldIEPluginLegacyAdapter TetVolFieldVtk_plugin("TetVolFieldToVtk", "*.vtk", "", nullptr, TetVolFieldToVtk_writer);
7682
}

0 commit comments

Comments
 (0)