PolyTools3D
@polytools3d
New Member
Joined: Feb 14, 2024
Topics: 17 / Replies: 1674
Reply
RE: Mini-challenge. Get ordered poly edge loops

Here is a very rudimentary code as proof of concept. It only works with the provided samples, and similar ones. Does not work with closed paths or pa…

8 years ago
Forum
Reply
RE: Mini-challenge. Get ordered poly edge loops

I’ve been looking into solving the problem from post #10, and similar. Below is the description of some possible algorithms, absolutely untested, just…

8 years ago
Forum
Reply
RE: Mini-challenge. Get ordered poly edge loops

denisT: for me is interesting to solve this task: …where i want to have one loop from side to side I thought you where talking about unconnected …

8 years ago
Forum
Reply
RE: Mini-challenge. Get ordered poly edge loops

Code from post #5 takes 2552ms on my end. I have an old MXS prototype that takes 20ms (for unconnected loops), but it does not sort the edges. If I ca…

8 years ago
Forum
Reply
RE: Mini-challenge. Get ordered poly edge loops

denisT: later i’ve found something better What times do you get with the code from post #5 and the better one for this model? ( delete object…

8 years ago
Forum
Reply
RE: Get Viewport 2d Pan/Zoom level?

Great! I absolutely misunderstood the question

8 years ago
Forum
Reply
RE: Get Viewport 2d Pan/Zoom level?

In orthographic views you can get the FOV and set the Zoom, and you can get the Pan from the viewport matrix and set it with the Pan property, so I am…

8 years ago
Forum
Reply
RE: Scripted modifier on delete

‘on delete do’ and ‘on detachedFromNode’ won’t fire up right away after you delete the modifier so you could store the original material in a #materia…

8 years ago
Forum
Reply
RE: Need help with Vector stuff (mesh from curve)

Here is a MXS test using Parallel Transport, what Klunk just mentioned.

8 years ago
Forum
Reply
RE: Need help with Vector stuff (mesh from curve)

Maybe “outline” isn’t the correct word for what I have in mind, I should have said offset line instead. So you have the top spline, instead of creati…

8 years ago
Forum
Reply
RE: Need help with Vector stuff (mesh from curve)

A while ago I proposed a very simple approach for creating surfaces from splines. Perhaps you can get something useful out of it. In the examples you…

8 years ago
Forum
Reply
RE: Constrain moving point to surface (ie, how does pflow's lock/bond work?)

If you just need to move the object, without any advanced physics, you could also do: Draw a line to the edge of the current face Find the neighbor f…

8 years ago
Forum
Reply
RE: Constrain moving point to surface (ie, how does pflow's lock/bond work?)

Push the particle until it reaches the desired distance. You need to do micro calculations usually referred as “steps” in physics engines. More steps …

8 years ago
Forum
Reply
RE: Saving/Reading string to/from text files

Here are two simple functions to read/write numbers and strings. Note that numbers are saved without quotes and strings are saved with quotes. For exa…

8 years ago
Forum
Reply
RE: Saving/Reading string to/from text files

Try readValue() instead of readLine()

8 years ago
Forum
Page 33 / 113