-
-
Notifications
You must be signed in to change notification settings - Fork 358
Add support for temporal mesh in vtkF3DMemoryMesh and scene API #2561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use std::vector here too
| this->Internals->Load({ importer }); | ||
| return *this; | ||
| } | ||
|
|
||
| scene& scene_impl::add(const mesh_t& mesh) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think of this name @Meakk ?
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.