@nokipaike: Nice and familiar to me, one thing that really stands out from this is the need for “holes” in mesh surfaces. We have this with 2D curves, any closed curve inside another closed curve is a hole by default. We really need this ability in mesh surfaces as a matter of urgency. I assume that as we already have this with curves, it is not going to be difficult, or time consuming to implement. Can we hear from the devs (maybe @mano-wii ?) on this matter please? It would be useful to get their impression of the work involved.
At the moment, we have to break up surfaces into parts with the hole straddling two faces, this is not good when you want to use wireframe modifiers to get a line drawing.
Man, that Destructive Extrude option has to get implemented. I absolutely fell in love with the feature back when I tried out ZBrush box modelling, which allowed you to make holes automatically when two meshes met. Please, please, please let it get accepted!
All the objections to this and sculpting can be catered for with a simple note in the manual - “Don’t Try to Sculpt NGons with Holes in Them!” Or simply disable holed surfaces when sculpting - CAD people won’t want to sculpt these surfaces anyway and this is who this feature is aimed at.
Unfortunately - as the destructive extrude developer says in the task - his implementation does NOT allow to create holes or to go full along an edge and just dissolve the part you pushed in.
I love this feature from sketchup and always wanted it in Blender but if we get this particular implementation we won’t get the best part, the holes and full cutouts.
The original BMesh design allowed for these, and there is some code (“ifdef’d out”, meaning not compiled in) that caters for them. But it was never carried through, I think mainly to expedite launching BMesh.
As a mesh tools developer, I am of two minds about supporting holes.
On the pro side:
Clearly users want this.
It makes some algorithms easier to implement: it is a pain to deal with booleans or knife cuts that make a hole right now, because you have to arrange for 2 support edges to be added to connect the hole to the surrounding face. (However, this by itself doesn’t solve all the problems: Blender also doesn’t want vertices repeated in a face, so there are other funny cases that knife and boolean have to fix up with extra support edges anyway.)
On the con side:
A large amount of code, both inside Blender and in addons, has been written assuming that faces do not have holes. All of that code would not work (in the best case) or maybe crash (in the worst case) until updated to deal with holes. This is a pretty massive undertaking. The fact that you can do this with 2D curves is a proof that it can be done but doesn’t negate the fact that there is a massive amount of work to do to get this to work. And it is not easy to figure out everything that has to change: sometimes when one is developing an algorithm, one assumes certain “invariants” are true and writes code that is correct assuming those invariants hold. Developers are not great at documenting all such hidden invariant assumptions, so it may be a long difficult task to uncover all of the bugs that would be introduced by introducing holes.
Maybe there’s a performance or memory concern. At the very least, faces are likely to take at least 8 more bytes each in BMesh face (the way the ifdef’d-out code works). Maybe with careful attention the performance and memory effects could be very minimal, however.
Maybe this makes it harder to export to other 3d formats that don’t allow holes. Though one could always add the needed support edges on export, so this isn’t too big a deal.
I would estimate that it might be a 3 month full-time job to put holes properly into Blender’s BMesh and Mesh representations. Doable, but needs to be prioritized and balanced against other things that the developers could be doing.
Accepted! Is there a possible case for a new type of face that does support holes? Rather than try to get around all the work involved in sorting the whole structure out and debugging every possible scenario caused by allowing holes in every face available at the moment, could we not have a special case face that does permit holes, I am sort of thinking out loud here… This “holed” face is particularly useful to CAD applications and when trying to produce line drawings from a mesh.
One thing I have noticed is that if I create two faces with the hole straddling them, I cannot use wireframe mods as the connecting lines also show and I can find no way to avoid this. I am going to investigate whether I can combine 2D curves with other mesh object to achieve what I want and I’ll let you know how this goes!
Yes, a special new face type with holes would be one way of adding them (different from how the ifdef-out code imagined), and would likely be better from a performance and space point of view. It would also mostly if not entirely eliminate the possibility of existing code crashing.
But it would not much improve the time needed to implement things properly. All the code that processes faces would now have to be augmented with code that handles the ‘faces-with-holes’ too, or else those faces will not get processed – maybe leaving big gaps in mesh (the faces with holes might just disappear).
The “Freestyle” needs some more work (I am not very good with this yet), but it has some promise. The top and bottom faces are 2D curves, so no interconnecting edges across the holes (yippeee!) and the depth is a simple edge extrusion. I will try to break this method now with a more complex model. This will give me a workaround and a technique I can develop.
I will add that the main reason the 2d curves handle this fairly easily is that there are very few edit-like operations that happen on curves: face filling and extruding and edge beveling are about it, so it wasn’t too hard to make code that handles that. Whereas with general meshes, there are tons of editing operations that can happen on them.
Thanks, I read the lot and I agree that it is a long task to implement this and fraught with danger to so much other code. My experiments with 2D curves are going well, they also make excellent 2D draughting tools when placed in top view and rendered white on white background with Freestyle lines added to the render. I will post an example tomorrow after my day’s flying (56 year old glider).
currently, creating this object with simple beziers, with holes and extruding the object …
after a mesh conversion, after merging doubled points, after selecting the sharp edges that I need …
if i want to make a bevel … here’s what i get …
simple holes become a long and tiring operation.
The way you did it (the Blender Polygon Modeller’s way) produces absolutely s**t topology from a CAD point of view and is very hard to deal with. This is one of the things we have got to get over before Blender can be seen as a serious, accurate modeller, it just is not good enough at the moment, but with a little bit of development and some ideas from CAD people, it can be made to work!
I used standard Blender, Offset Edges and my own PDT tools. If we had holes in planar surfaces, it would be even better BTW.
Cheers, Clock.
EDIT:
I forgot to say this took me less than 5 minutes to make…
That was my the very first proposal back in 2011)
Now I know, that NURBS is very tough mathematical engine, and implementing it is equal to making another program like Blender from scratch.
in my opinion you are a bit drastic, it is true that it is a different system from the management of the mesh … but it would be enough an initial system that would allow to import natively the STEP format (unirvesal between the cad apps) or also openurbs … which are container of nurbs and breps surfaces …
Then all the other manipulation tools of these surfaces, it would be natural that little by little they were developed …
without any urgency …
but in the meantime we would have a perfect visualization of these surfaces
ready for rendering, and basic manipulation (move rotate scale)
It is dead easy to make holes in 2D Curve Objects - these can be placed wherever in space we want them, provided you don’t apply the rotation.
If you convert one of these Curve objects to Mesh, you get absolutely s**t topology from a CAD point of view - horrible Tris everywhere that you can’t bevel, etc.
You can split faces with holes in them so the holes straddle a joint - not good but better than anything else (see my previous post).
Soooooooo, why can’t we have an new object that could combine 2d Curve objects to get the holes and conventional meshes. This is not required for sculpting, etc. purposes, it is required for precision work, where sculpting, sub-division surfaces, etc. are not required.
Here is an example, I used a 2D curve for the top face and extruded mesh for the rest, these are combined as a collection, not a single object. Making a 2D curve from an accurately drawn flat mesh is about as easy as modelling gets BTW.
Thoughts please? Do we need to go to NURBS to get holes, won’t Bezier Curves do what we want here? Why did CAD packages in the 1980’s find this concept of a hole in a face so easy to do before many Blender users were born?