...
 
Commits (11)
......@@ -377,11 +377,13 @@ set(_vtk_modules
# needed for vtkVeraOutReader
)
if ((NOT WIN32) OR (NOT MSVC) OR (MSVC_VERSION GREATER 1899))
# MSVC 2015 (1900) or newer is needed if using MVSC for vtkIOMotionFX
list(APPEND _vtk_modules
vtkIOMotionFX # needed for vtkMotionFXCFGReader
)
if (PARAVIEW_ENABLE_MOTIONFX)
if ((NOT WIN32) OR (NOT MSVC) OR (MSVC_VERSION GREATER 1899))
# MSVC 2015 (1900) or newer is needed if using MVSC for vtkIOMotionFX
list(APPEND _vtk_modules
vtkIOMotionFX # needed for vtkMotionFXCFGReader
)
endif()
endif()
......
......@@ -248,6 +248,9 @@ mark_as_advanced(PARAVIEW_ENABLE_LAS)
option(PARAVIEW_ENABLE_PDAL "Enable PDAL support." OFF)
mark_as_advanced(PARAVIEW_ENABLE_PDAL)
option(PARAVIEW_ENABLE_MOTIONFX "Enable MotionFX reader" ON)
mark_as_advanced(PARAVIEW_ENABLE_MOTIONFX)
if (UNIX)
option(PARAVIEW_ENABLE_FFMPEG "Enable FFMPEG Support." OFF)
endif()
......
# Glyph filter spatial distribution improvement
The Glyph filter's "Uniform Spatial Distribution" mode now scales better with visualization domain size.
......@@ -85,17 +85,6 @@
<Property name="TransportMethod" />
<Property name="TransportMethodArguments" />
</PropertyGroup>
<SubProxy>
<Proxy name="CatalystOptions"
proxygroup="misc"
proxyname="CatalystOptions"></Proxy>
<ExposedProperties>
<PropertyGroup label="Catalyst Options">
<Property name="CatalystWriteFrequency" />
<Property name="CatalystFilePattern" />
</PropertyGroup>
</ExposedProperties>
</SubProxy>
<Hints>
<Property name="Input" show="0" />
<Property name="TransportMethod" show="1" />
......@@ -103,7 +92,6 @@
<Property name="CompressionMethod" show="1" />
<WriterFactory extensions="vta"
file_description="VTK ADIOS File" />
<CatalystApproved/>
</Hints>
<!-- End of ADIOSWriter -->
</WriterProxy>
......
......@@ -167,17 +167,18 @@ public:
this->Bounds.GetMinPoint()[2], this->Bounds.GetMaxPoint()[2]);
}
// we use diagonal, instead of actual length for each side to avoid the
// issue with one of the lengths being 0.
double side = std::sqrt(this->Bounds.GetDiagonalLength());
double volume = side * side * side;
double l[3];
this->Bounds.GetLengths(l);
int dim = (l[0] > 0.0 && l[1] > 0.0 && l[2] > 0.0) ? 3 : 2;
double volume = std::pow(this->Bounds.GetDiagonalLength(), dim);
if (volume > 0.0)
{
assert(volume > 0.0);
assert(self->GetMaximumNumberOfSamplePoints() > 0);
double volumePerGlyph = volume / self->GetMaximumNumberOfSamplePoints();
double delta = std::pow(volumePerGlyph, 1.0 / 3.0);
this->NearestPointRadius = std::pow(2 * delta, 1.0 / 2.0) / 2.0;
double delta = std::pow(volumePerGlyph, 1.0 / dim);
this->NearestPointRadius = delta / 2.0;
}
else
{
......