Skip to main content
Question

Select specific IFMEFace from solid for naming


harmen_kampinga
Forum|alt.badge.img+2

How to select a specific IFMEFace from a solid?

 

I have created a solid and want to extract face 0 and face 5. I like to have them have a name. Later on would use those names to assign a specific texture to those two faces.

 

"Part 0: IFMEFace " should have a name like "roof"

 

3 replies

takashi
Evangelist
  • July 3, 2018

Hi @h1, the GeometryPropertySetter with this Geometry XQuery does that.

Geometry XQuery (Enter with Advanced Mode)

for $geom at $i in //geometry[@fme_geometry_type = 'IFMEFace']
where $i = (16)
return number($geom/@fme_id)

Note that item indices are 1-based in XQuery expressions.

0684Q00000ArKe0QAF.png


harmen_kampinga
Forum|alt.badge.img+2

I will have a look at it @takashi , thank you!


harmen_kampinga
Forum|alt.badge.img+2

It works great! Played around with it. Thanks!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings