The three pillars of my not understanding

561
2
08-05-2012 01:29 AM
PaulThe_last_Paul
New Contributor
Hello, I recently downloaded the demo version and I have questions.
1) This is where I move the poly, but by moving away from its neighbors:
[ATTACH=CONFIG]16672[/ATTACH]

Here's the code:
[PHP]
Lot -->
color("#aaaaaa")
extrude(4)
comp(f){0:one|1:two|2:three|3:four|4:five|5:six|6:seven}

one -->NIL

two -->
offset(-1) comp(f){0:one1|1:two1|2:three1|3:four1|4:five1|5:six1|6:seven1}

//three -->NIL

//four -->NIL

//five -->NIL

//six -->NIL

//one1 -->NIL

//two1 -->NIL

//three1 -->NIL

//four1 -->NIL

five1 -->t(0,0,5)[/PHP]


Is there a way to make it move, "inseparable" from the adjacent polygons?

2) Is there any way to know the coordinates of the vertices of the polygon?
It is necessary to calculate its shape (square, paralepiped curve shape), its area. This all will help determine his fate.
3) Can somehow get access to a variety of materials id, from imported mesh? If there are more than one.
0 Kudos
2 Replies
DavidOConnor
New Contributor
Hi Malabamba

Google translate isn't perfect, so it is hard to understand exactly what your question means.  Also, my knowledge of CGA is far from perfect too.  But I'll do my best.

Cheers, David

(1) Is there a way to make it move, "inseparable" from the adjacent polygons?

I don't think CityEngine operates in the same way that 3d modelling packages, by stretching the connected polygons.  So I would say 'no'.

(2)  Is there any way to know the coordinates of the vertices of the polygon?

Surprisingly, I don't think you can get the coordinates of the vertices directly.

There are a number of functions you can perform: including geometry.Area / geometry.isRectangular / geometry.isPlanar / geometry.isConcave.   These return a value, like the area, or test the shape of the geometry.

3) Can somehow get access to a variety of materials id, from imported mesh?

I think this is not possible, regrettably
0 Kudos
MatthiasBuehler1
Frequent Contributor II
Hi,

can you rephrase the questions little better ? I'd like to grasp the core of your questions better to be able to properly answer.



nevertheless :

1]
try
extrude(world.y, 4)


2]
what would the use case be ? maybe I can help.

3]
inserted assets can have multiple materials, but you can only access individual faces directly by ID. you can not access groups separated by material (yet).
0 Kudos