Skip to main content
Question

Select specific IFMEFace from solid for naming

  • July 3, 2018
  • 3 replies
  • 21 views

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"

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

takashi
Celebrity
  • 7843 replies
  • 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 = (1, 6)
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!