How to split a skin through a polyextrude?

   2577   4   1
User Avatar
Member
21 posts
Joined: Nov. 2015
Offline
Hi,

I'm trying to design a vault from a skin,(file attached). At first sigth, I reached it, but I have a problem…I haven't found the way for split this in multiple pieces (Primitives). And then group this primitives in blocks with the aim of simulate a brick.


Could someone help me, please?

Thanks

Attachments:
Ex_vault.hipnc (234.5 KB)

User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
Hi Josep,

you can simply turn a grid into a brick pattern by making its primitives ‘unique’ e.g. with a fuse SOP. Then shift the primitive rows to left and right either with a group SOP and transforms or by wrangling:

// MEASURE AND COUNT
int hor  = chi('horizontal') - 1;
float tile = 1 / float(hor);
float offset = tile * 0.25;
// IDENTIFY ANY OTHER ROW
float any_other = @primnum % ( hor * 2) ;
any_other += 0.1;
// ASSIGN SHIFT DIRECTION
float shift = sign(any_other - hor);
@P.x += offset * shift;
// MOVE BACK EDGES a.k.a. CUT-OFF
@P.x = clamp(@P.x, -0.5, 0.5); 

Next transform the pattern into a half-cylinder.

// CONVERT PLANE TO HALF-CYLINDER
vector bbox = relbbox(0, @P);
@P.x = sin(@P.x * $PI);
@P.z = bbox.y;
@P.y = sin(bbox.x * $PI);

The rest is a matter of extruding, beveling and correcting the normals.

Attachments:
vault_bricks.jpg (70.3 KB)
vault_bricks.hipnc (78.1 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
In your setup: Dissolve first and extrude later? Also set polyextrude to ‘divide into: individual elements’ and activate ‘output back’.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
21 posts
Joined: Nov. 2015
Offline
Hi Konstantin,

Thanks for ypur advices.
User Avatar
Member
21 posts
Joined: Nov. 2015
Offline
Hi Konstantin,

I reshaped my vault, thanks again for yours advices.

If you want to see my vault, see the attached file.

Attachments:
Ex_vault_2.hipnc (244.7 KB)

  • Quick Links