Skip to content

Add getSceneInfo API - #3434

Open
noclone wants to merge 1 commit into
f3d-app:masterfrom
noclone:metadata-api
Open

Add getSceneInfo API#3434
noclone wants to merge 1 commit into
f3d-app:masterfrom
noclone:metadata-api

Conversation

@noclone

@noclone noclone commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Describe your changes

  • Add getSceneInfo API

Issue ticket number and link if any

Checklist for finalizing the PR

  • I have performed a self-review of my code
  • I have added tests for new features and bugfixes
  • I have added documentation for new features
  • If it is a modifying the libf3d API, I have updated bindings
  • If it is a modifying the .github/workflows/versions.json, I have updated docker_timestamp

AI Disclosure

  • I have not used AI to generate any of the content of this pull request
  • I have used AI to generate code in this pull request:
    • I have carefully read and understood the AI policy.
    • I have carefully reviewed and completely understood every generated line.
    • I disclose below which parts of the code were generated and with which AI model:

Opus 5 to generate the getSceneInfo java bind, which I reviewed and modified.

Continuous integration

Please write a comment to run CI, eg: \ci fast.
See here for more info.

@noclone
noclone requested a review from a team as a code owner August 4, 2026 07:15
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

You are modifying libf3d public API! ⚠️Please update bindings accordingly⚠️!
You can find them in their respective directories: c, python, java, webassembly.

@noclone

noclone commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

\ci fast

@noclone

noclone commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

@mwestphal @Meakk please review

@mwestphal

Copy link
Copy Markdown
Member

ill review asap, sorry for the delay.


struct SceneInfo
{
int NumberOfFiles = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NumberOfImporters would be better at this level


/**
* Recover counters describing all imported data.
* Only actors are taken into account, so volumes contribute no points nor cells.

@mwestphal mwestphal Aug 6, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Only actors are taken into account, so volumes contribute no points nor cells.
* Only surface actors are taken into account for point and cell count

Comment thread library/public/types.h
*/
struct scene_info_t
{
/// Number of importers in the scene, which counts every file added with scene::add as well as

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Number of importers in the scene, which counts every file added with scene::add as well as
/// Number of files in the scene, which counts every file added with scene::add as well as

There is no concept of importers in the libf3d API

@mwestphal mwestphal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants