Forums › Maxon Cinema 4D › “Make Pole” function: make a point in the middle of a poly(R17)
“Make Pole” function: make a point in the middle of a poly(R17)
Eric Chard
October 26, 2019 at 8:01 pm(R17) Is there a function that will generate a point in the center of a (convex) poly and triangulate the poly, in one operation?
Tnx.
++++++++++++++++
“Putting the HARM in ‘harmonica’ since 2005.”
++++++++++++++++Brian Jones
October 26, 2019 at 9:29 pmyou can use the Create Point tool on a poly. You’d have to eyeball center, it wouldn’t be mathematical center and it only will do one poly at a time but that will work.
Eric Chard
October 27, 2019 at 12:54 amNot practical for more than a dozen polys.
(FWIW, LW has this function. Rarely needed, but nice when you do need it.)
++++++++++++++++
“Putting the HARM in ‘harmonica’ since 2005.”
++++++++++++++++Brian Jones
October 27, 2019 at 1:10 amyeah, I wondered if you meant a lot of polys, don’t remember any plugins that did/do that…
Sam Treadway
October 27, 2019 at 7:55 amHere’s a python script I wrote specifically for this…mostly out of curiosity. I don’t know what’s changed in the python sdk between R17 and R21 so this may not work. You’re welcome to test it and let me know how it works out.
Run the script with one or multiple objects selected and with as many polygons as you wish per object – must be in polygon mode.
It will iterate through the selected objects and only apply the ops to individual polygons on the relevant selections.You can also do this manually by:
1. selecting polygons
2. selecting the ‘extrude inner’ tool
3. setting the extrude inner options as follows (not absolutely necessary):
max angle: 180 (whatever)
offset: 0
subs: 1
preserve groups: off
variance: 0
create n-gons: off
4. After performing an inner extrude, then run the ‘collapse’ command (right click in viewport).Brian Jones
October 27, 2019 at 2:38 pmThanks Sam, that works in R21
Sam Treadway
October 27, 2019 at 7:05 pmThanks,
Yeah, I have R21. I just haven’t checked with R17 but it should work on any version R16+.
Here’s a slightly improved version that handles undos better – you have to undo twice to completely reverse out of it.
13845_polygontocenterpointv0.0.2.zipEric Chard
October 29, 2019 at 5:58 amCool! Seems to work perfectly under R17! Thanks!
If I ever get around to scripting, I’ll try to make it so the new center points are all selected on exit.
Many thanks: what a quick solution!
++++++++++++++++
“Putting the HARM in ‘harmonica’ since 2005.”
++++++++++++++++Eric Chard
October 29, 2019 at 6:01 amOh, if one remembers to make an all-points selection set BEFORE running the script, one can re-invoke that set and INVERT to Select the new center points.
++++++++++++++++
“Putting the HARM in ‘harmonica’ since 2005.”
++++++++++++++++Sam Treadway
October 29, 2019 at 6:42 amWell there you go now twisting my arm ????
Log in to reply.