You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
$\begingroup$ Hi and welcome! The chances of getting a satisfactory answer increase if you give a complete example. What do you have (an in-game map?) and what do you want to do (culling? splitting into virtual sub-maps?). The example should include a screenshot or a sketch, as well as a description for a sample setup (e.g. add default plane, subdivide it 2x, ...) or a blend file, and a small, complete and executable script that tries to solve the task. Finally, a description of the result and what does not work. $\endgroup$Blunder– Blunder2024-10-09 09:59:59 +00:00Commented Oct 9, 2024 at 9:59
-
$\begingroup$ I kind of thought that i explained everything well enough, especially with the given code example. I can not share what i am actually working on because it is confidential but i will update my initial question $\endgroup$Slluxx– Slluxx2024-10-09 10:12:05 +00:00Commented Oct 9, 2024 at 10:12
-
$\begingroup$ Sorry, it was not clear at all. Thanks for the update & the images meanwhile. Unclear things: 1) What are "2×2 chunks (with infinite height)"? -- I guess those are the red sections, right? The mesh is quartered, only X and Y of the position are relevant, and Z is ignored, right? 2) " it should be divided recursively into smaller 2×2 chunks." -- It should be quartered again, right? 3) The mesh seems to be triangulated -- clear now. It is. 4) Blender does not guarantee a certain order of the verts. Can you guarantee it? If not, it's chaotic. 5) What about the faces that is in 2 sections? $\endgroup$Blunder– Blunder2024-10-09 10:57:44 +00:00Commented Oct 9, 2024 at 10:57
-
$\begingroup$ 1) Take the meshes bounds and divide them by 2 (while not chunking in the height dimension) and choose everything within. So yes, you are right with your assumption. 2) yes, just like in my image. However i dont like how its worded. The mesh is not supposed to be cut, i just want to get the faces/verts within this "imaginary" boundary. 3) yes 4) i do not care about order, just about intact faces 5) I answered that in my post. Check the penultimate paragraph. If a face is within 2 chunks, it can be placed into the chunk that the average position of all verts is in (or randomly chosen). $\endgroup$Slluxx– Slluxx2024-10-09 11:44:49 +00:00Commented Oct 9, 2024 at 11:44
-
$\begingroup$ 4) but the order is crucial here ;-) You get these strips because the indices are in natural order (1,2,3,4 ...). If you mess up the order by a modifier or DynTopo (43, 1, 99, 17, ...) you will get a few random "shreds" of the mesh and they are not even in the correct section. So I wonder why you rely on the indices at all if you actually want to divide them into sections. In this case, it's the positions that matter, not the indices. $\endgroup$Blunder– Blunder2024-10-10 12:29:17 +00:00Commented Oct 10, 2024 at 12:29
|
Show 1 more comment
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
- MathJax equations
$\sin^2 \theta$
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. cycles-render-engine), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-py