View Full Version : Simple house mesh with a titled roof ?
10-17-2005, 05:09 PM
I want to create a simple house with a script.
I want to start with a square spline, extrude it to 6.0, then create a a tilted roof (extrude the top face to 3.0 and weld the created vertex with the rectangle's width parameter).
All that keeping the stack for further changes.
Have you some tips to give to write that kind of scrip ? Is there something similar somewhere ?
Thanks in advance,
I did this with a 'Simple Plugin' - with all its drawbacks, like you have to install it on every machine.
This is a early development stage: the simpleHouse(preview); (http://proforma.preset.de/cgtalk/scripts/rdg_object_genericHouse_preview.ms.txt)
I also have hipped Roof and half-hipped Roof houses.
Currently I am working on chamfered versions of this plugins.
Automatic mapping, 3-Click-Orientation-Mouse-Tool, village material generators, and Village2Poly are in 'project dependend state'.
I hope to release some 'rdg::BaumassenTools' soon ;)
10-20-2005, 11:05 PM
Thanks Georg for the plugin. Excellent...
But it do not feet my actual needs. At the begining I have a Spline shape, a lot of square planes shape that I want to apply a script to.
1) Extrude them by a selected value
2) Creating a titled roof from the top face.
for i in selection do (
if superclassof i == shape do (
addmodifier i (extrude())
i.modifiers[#Extrude].amount = 6
i.modifiers[#Extrude].mapCoords = on
i.modifiers[#Extrude].matIDs = on
i.modifiers[#Extrude].smooth = on
i.modifiers[#Extrude].capType = 0
i.modifiers[#Extrude].capStart = on
i.modifiers[#Extrude].capEnd = on
addmodifier i (edit_mesh())
setFaceSelection i i.modifiers[#Edit_Mesh] #(11,12)
-- Change le nom
i.name = "House"
-- Change la couleur
i.wirecolor = color 38 200 0
I've scripted a base, that extrude (modifier "extrude") a squared spline, apply a "mesh edit" to the result, select the two top faces. But I cannot find my way to extrude those faces with the extrude parameter in the "mesh_edit" panel. My objective is two keep the modifiers stack (extrude, edit_mesh) alive for ulterior modifications.
I certainly should re-read the documentation, but if someone have a tip to share !
Thanks, and thanks Georg for the script again !
in my scenario there was no way to compute the orientation of the house, and the base splines where too detailed. Thats why I had to place the houses manually with my 3-click-mouseš-tool.
But you could compute the rotation of the base and rotate the house to fit it.
10-21-2005, 09:11 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.