Skip to content

Commit

Permalink
Deploying to gh-pages from @ ba54daa 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Jun 22, 2024
1 parent a21f0ac commit 6f45cfa
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions vtkext/private/module/vtkF3DRenderer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,17 @@ void vtkF3DRenderer::SetUseBlurBackground(bool use)
this->CheatSheetConfigured = false;
}
}

//----------------------------------------------------------------------------
void vtkF3DRenderer::SetBackfaceType(const std::string& backfaceType)
{
if (this->BackfaceType != backfaceType)
{
this->BackfaceType = backfaceType;
this->RenderPassesConfigured = false;
}
}

//----------------------------------------------------------------------------
void vtkF3DRenderer::SetBlurCircleOfConfusionRadius(double radius)
{
Expand Down Expand Up @@ -1352,6 +1363,18 @@ void vtkF3DRenderer::ConfigureActorsProperties()
anActor->GetProperty()->SetEdgeVisibility(this->EdgeVisible);
anActor->GetProperty()->SetLineWidth(this->LineWidth);
anActor->GetProperty()->SetPointSize(this->PointSize);
if (this->BackfaceType == "visible")
{
anActor->GetProperty()->SetBackfaceCulling(false);
}
else if (this->BackfaceType == "hidden")
{
anActor->GetProperty()->SetBackfaceCulling(true);
}
else if (this->BackfaceType != "default")
{
F3DLog::Print(F3DLog::Severity::Warning, this->BackfaceType + " is not a valid backface type, assuming default");
}
}
}
this->ActorsPropertiesConfigured = true;
Expand Down
3 changes: 3 additions & 0 deletions vtkext/private/module/vtkF3DRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class vtkF3DRenderer : public vtkOpenGLRenderer
void SetUseBlurBackground(bool use);
void SetBlurCircleOfConfusionRadius(double radius);
void SetRaytracingSamples(int samples);
void SetBackfaceType(const std::string& backfaceType);
///@}

///@{
Expand Down Expand Up @@ -325,6 +326,8 @@ class vtkF3DRenderer : public vtkOpenGLRenderer

std::string CachePath;
std::string AnimationNameInfo;

std::string BackfaceType;
};

#endif
2 changes: 1 addition & 1 deletion web/f3d.js

Large diffs are not rendered by default.

Binary file modified web/f3d.wasm
Binary file not shown.

0 comments on commit 6f45cfa

Please sign in to comment.