Notifications
Clear all

[Closed] Polygon generation

Hey there, I am currently moddelling an Mac Xserve (for work) and am in dire need of a script that would basically make a polygon based on already existing vertices. Basically I have laid out a rough shape, then I have been deleting polygons and replacing them with much more intricate ones. Like deleting a square and creating one that is a circle, and then filling in the gaps around it.

I know that I am confusing, but let me try again.

Alright I have attached a photo that might illustrate what I am talking about. I started out with a box. Then I started dividing the box into sections based on photo’s. Then I started to delete the polys one by one and insert new ones by creating the shape that I need with an editable spline, then surfacing it and then using the create tool (in polysub) to create the new ploygons. The problem is that I am sometimes clicking on about a hundred vertices just to make a few new ploygons. Isn’t it possible to select the vertices (of the empty space) and then use a script to say “make polygon” (I know that sounds funny, but it has to be possible) that would basically click all of the verts in series to make a new polygon. Even if you had to click inside the poly to affirm that that is the direction that it need to go.

I hope someone knows of a script that does this, because I know that I cannot write this right now as I am not necessarily a scripting wiz, just a scripting toyer.

Thanks in advance,
Speedo

6 Replies

Are there already edges connecting the verts?

  • R

yes there are.

maybee you should checkout cspolytools, just search for it at www.scriptspot.com
The MakePoly feature seems to do what you request, at least it’s a lot faster than poly->create.

[i]CsPolyTools
“…MakePoly which lets you select a bunch of vertices and click the button to make a polygon”

[/i]

yeah, thanks I found that after I posted, but it doesn’t work the way I would like. The reason why is because I think it is looking at the vertice number and then using that as it’s order for creation. I am getting these wierd crosspoly lines, so I guess it’s not working in my current application. I have tried it in an easier scene and it works fine, but with my current one, it doesn’t work so well. Anyway, thanks for the info.

Speedo

Maybe this also helps. Try max’s native Editable Poly tools. Use ‘border’ mode (4) and then convert to vertex selection (Ctrl + LMB on the vertex icon).

And for quick installs of CSPolyTools (+Meshtools) check out these threads. The last one shows how to set up your quads.

http://www.cgtalk.com/showthread.php?t=140860&page=2&pp=15
http://www.cgtalk.com/showthread.php?t=144717

Hope this helps.

  • Rens

Thanks for your input, I appreciate the time it took to search and then post. I have installed these and am going to try them out.

Thanks again,
Speedo