Add support for temporal mesh in vtkF3DMemoryMesh and scene API#2561
Add support for temporal mesh in vtkF3DMemoryMesh and scene API#25610xfedcafe wants to merge 4 commits intof3d-app:masterfrom
Conversation
|
You are modifying libf3d public API! |
|
\ci fast |
0454de1 to
a89c03e
Compare
library/public/scene.h
Outdated
| virtual scene& add(const std::filesystem::path& filePath) = 0; | ||
| virtual scene& add(const std::vector<std::filesystem::path>& filePath) = 0; | ||
| virtual scene& add(const std::vector<std::string>& filePathStrings) = 0; | ||
| virtual scene& add(const std::vector<mesh_t>& mesh, double timeStep) = 0; |
There was a problem hiding this comment.
im not sure to follow, why is there multple meshes for a single timestep ?
|
Need any help moving forward @0xfedcafe ? |
47433bf to
ff3de6e
Compare
|
Hi @0xfedcafe , still working on this ? |
|
Hi @0xfedcafe , still working on this ? |
|
Hi, I updated things a bit after the redesign of the feature. I'll finish it soon. |
|
Do not hesitate to discuss the API more in deep in discord before implementing anything :) |
709d651 to
0326221
Compare
0326221 to
cb8da47
Compare
Co-authored-by: Mathieu Westphal <mathieu.westphal@gmail.com>
40f949d to
0be9b28
Compare
| @@ -307,6 +296,35 @@ scene& scene_impl::add(const std::vector<fs::path>& filePaths) | |||
| } | |||
|
|
|||
| //---------------------------------------------------------------------------- | |||
| scene& scene_impl::add(std::vector<double> times, MeshCallback&& callback) | |||
| { | |||
| if (times[1] < times[0]) | |||
There was a problem hiding this comment.
dont check anything here, let vtkF3DMemnoryMesh handle it
| * using SetPoints, SetNormals, SetTCoords, and SetFaces methods. | ||
| * This switches the mesh to animated mode with the given time range. | ||
| */ | ||
| void SetAnimatedMesh(double startTime, double endTime, MeshCallback callback); |
| this->Internals->Load({ importer }); | ||
| return *this; | ||
| } | ||
|
|
||
| scene& scene_impl::add(const mesh_t& mesh) |
There was a problem hiding this comment.
I think you should be able to call the other method here ?
| * Callback type for animated meshes. | ||
| * Called with the current time value, should return the mesh for that time. | ||
| */ | ||
| using MeshCallback = std::function<mesh_t(double time)>; |
Describe your changes
Add support for temporal mesh in vtkF3DMemoryMesh and scene API. I haven't updated bindings yet as I haven't figured out which was to be updated or how.
Issue ticket number and link if any
#2443 , #2443
Checklist for finalizing the PR
.github/workflows/versions.json, I have updatedtimestampContinuous integration
Please write a comment to run CI, eg:
\ci fast.See here for more info.