Page MenuHome

Geometry: new geometry module
AbandonedPublic

Authored by Fabian Schempp (fabian_schempp) on Jul 15 2021, 11:48 PM.

Details

Summary

This adds the initial (empty) folder structure and CMakeLists.txt file
for the
new geometry module.
The geometry module will be used for shared code between modifiers and
geometry nodes. Header files will be prefixed with GEO.

Diff Detail

Repository
rB Blender
Branch
geometry_module (branched from master)
Build Status
Buildable 15866
Build 15866: arc lint + arc unit

Event Timeline

Fabian Schempp (fabian_schempp) requested review of this revision.Jul 15 2021, 11:48 PM
Fabian Schempp (fabian_schempp) created this revision.
  • added missing newline at the end of the CMakeLists.txt
Hans Goudey (HooglyBoogly) added inline comments.
source/blender/geometry/CMakeLists.txt
26–27

Maybe we won't need RNA for this module? I'd hope not anyway.

  • removed makesrna from includes in CMakeLists.txt
Fabian Schempp (fabian_schempp) marked an inline comment as done.Jul 16 2021, 6:57 PM

I'm unsure what I'm being asked to review, there is not a whole lot here? Is this a work in progress and are you asking "is this good start"? probably, no complaints here, thumbs up from me, should you land this as is in master? that be a hard no for me, I'd hold off until the module actually has functionality to offer, I'd expect at-least a blender_add_lib call with a single source/public header file as a minimally useful commit.

My thinking was it's nice to add the module in a separate commit, not just the first commit that needs to move something to it. That way we can be a bit more purposeful about it, give it a proper commit message, properly define what should be included and what shouldn't, etc.
Maybe that's a bit silly though, I'm not sure.

My thinking was it's nice to add the module in a separate commit, not just the first commit that needs to move something to it. That way we can be a bit more purposeful about it, give it a proper commit message, properly define what should be included and what shouldn't, etc.
Maybe that's a bit silly though, I'm not sure.

I agree with you that it is nice to have this as a initial separate commit. How do we progress here?

Think you can just commit this new module as part of the first thing that we move into the module. E.g. you could move BKE_volume_to_mesh.hh to the geometry module.