Skip to main content
Solved

How can i extract coordinates of this 3D GEOMETRY ?


vimva679
Supporter
Forum|alt.badge.img+9

Dear all ,

 

It's a hollow PIPE ,

image I want to extract XYZ for each

 

a) centre point (c1)

b) face centre point (v1&v2) + face INNER vertex point (vf1&vf2)

c) radius (e.g. distance from v2 to vf2)

d) total length (e.g distance from v1 to v2)

 

Pipe1 thank you for kind support

Best answer by hth

Hello,

 

have a look at the attached FME-workbench.

View original
Did this help you find an answer to your question?

12 replies

hth
Participant
Forum|alt.badge.img+2
  • Participant
  • June 26, 2023

I would start deaggregating the pipe. Vertexcount each resulting face, remove all faces with only 4 or 5 coordinates, which are the pipe walls, you don't need. Sum each X, Y, Z-coordinates and divide each by 16 to get the gravity point. Try to make 2 groups of coordinates by using neighbourfinder or hullaccumulator to seperate each ending and than sum each x,y,z-coordinate again for each ending, diving them by 8 to get the desired centerpoints.


vimva679
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • June 26, 2023
hth wrote:

I would start deaggregating the pipe. Vertexcount each resulting face, remove all faces with only 4 or 5 coordinates, which are the pipe walls, you don't need. Sum each X, Y, Z-coordinates and divide each by 16 to get the gravity point. Try to make 2 groups of coordinates by using neighbourfinder or hullaccumulator to seperate each ending and than sum each x,y,z-coordinate again for each ending, diving them by 8 to get the desired centerpoints.

nops that didn't go well @hth​ , so i have now reduced my expectation and updated the above image with only a,b,c,d XYZ coordiantes. If you cld share me workbench that would be more helpful for me to understand and integrate into my main FME workbench / tnx 🙏


hth
Participant
Forum|alt.badge.img+2
  • Participant
  • Best Answer
  • June 27, 2023

Hello,

 

have a look at the attached FME-workbench.


vimva679
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • June 27, 2023
hth wrote:

Hello,

 

have a look at the attached FME-workbench.

this is so excellent @hth​ , i feel more confident to learn and use more and more FME , thank you so much once again 🙂

 

if I want to transfer this into an excel report, i hope this is the best way to extract as i have thousands of records

 

image 

Question /doubt for my understanding only, however the FME workbench you provided does a great job and extract all desired . so thank you so much for that once again .

 

a. you have removed the wall from pipe so ...does it remove the inner wall or outer wall and i believe we are removing the walls to extract the coordinates and get rid of solid and only have frame ?

imageb. Also you using '0', does this have some meaning to extract the inner radius ?

 

imageimage 

c. Does this Transformer play no role when we have 3D Pipe?

 

image


hth
Participant
Forum|alt.badge.img+2
  • Participant
  • June 27, 2023
vimva679 wrote:

this is so excellent @hth​ , i feel more confident to learn and use more and more FME , thank you so much once again 🙂

 

if I want to transfer this into an excel report, i hope this is the best way to extract as i have thousands of records

 

image 

Question /doubt for my understanding only, however the FME workbench you provided does a great job and extract all desired . so thank you so much for that once again .

 

a. you have removed the wall from pipe so ...does it remove the inner wall or outer wall and i believe we are removing the walls to extract the coordinates and get rid of solid and only have frame ?

imageb. Also you using '0', does this have some meaning to extract the inner radius ?

 

imageimage 

c. Does this Transformer play no role when we have 3D Pipe?

 

image

a. It removes every wall (inner and outer), because we don't need them for the rest.

b. 0 means we take the first coordinate. 1 would mean second coordinate, 2 means third etc. To get the radius it doesn't matter which coordinate we take from the circle, because it is a circle. I just took the first.

c. I think, it is usefull, if you got different type of geometries in your data and you want to extract the pipes from it. But in the end, the pipe is a 3D-Collection of geometries. In my example I created the pipe myself without using the pipereplacer of fme. So fme doesn't know, that it is a pipe. For the workbench i created, it does not matter if it is a pipe or a solid or a collection of faces, because I deaggregate the geometry into seperate face.


vimva679
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • June 27, 2023
vimva679 wrote:

this is so excellent @hth​ , i feel more confident to learn and use more and more FME , thank you so much once again 🙂

 

if I want to transfer this into an excel report, i hope this is the best way to extract as i have thousands of records

 

image 

Question /doubt for my understanding only, however the FME workbench you provided does a great job and extract all desired . so thank you so much for that once again .

 

a. you have removed the wall from pipe so ...does it remove the inner wall or outer wall and i believe we are removing the walls to extract the coordinates and get rid of solid and only have frame ?

imageb. Also you using '0', does this have some meaning to extract the inner radius ?

 

imageimage 

c. Does this Transformer play no role when we have 3D Pipe?

 

image

@hth​ thank you so much for this understanding, would it also work to relate / co-relate VF2/V2 & VF1&V1

 

i.e. Vf2 / V2 point are the point from the same side and Vf1 / V1 point are the points together of the other side as well ?

 

the reason i have to then after calculate Face and Longest Direction based on those respective points .


vimva679
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • June 27, 2023
vimva679 wrote:

this is so excellent @hth​ , i feel more confident to learn and use more and more FME , thank you so much once again 🙂

 

if I want to transfer this into an excel report, i hope this is the best way to extract as i have thousands of records

 

image 

Question /doubt for my understanding only, however the FME workbench you provided does a great job and extract all desired . so thank you so much for that once again .

 

a. you have removed the wall from pipe so ...does it remove the inner wall or outer wall and i believe we are removing the walls to extract the coordinates and get rid of solid and only have frame ?

imageb. Also you using '0', does this have some meaning to extract the inner radius ?

 

imageimage 

c. Does this Transformer play no role when we have 3D Pipe?

 

image

I think i found it that itself in the FME workbench you provided, there is that relation / co-relation of points . thanks a lot @hth​ image


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • June 27, 2023

Hi @vimva679​,

I have attached a workspace that uses a bit of a different approach, but will get you the same answers.


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • June 27, 2023

Bonus workspace to extract the Pipe centerlines with inner and outer radius values.


vimva679
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • June 27, 2023
daveatsafe wrote:

Hi @vimva679​,

I have attached a workspace that uses a bit of a different approach, but will get you the same answers.

thank you @daveatsafe​ for that extra mile , am truly thankful for it .


vimva679
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • June 28, 2023

I am truly thankful to all Safe Support team, @daveatsafe​  and @hth​ , @nampreetatsafe​ for such smart solution and promising support, its just also helped me to save some major errors that i could easily made as beginner. The current transformers turned my workflow very efficient. So thank you once again for solution and that too on time bound and crystal clear steps that remarkably fitted so well into my main FME workbench without any error.


vimva679
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • July 5, 2023

EATR_workflow2If there is any better way to extract desired point, either of the above FME workbench could be appended to extract this feature as well. Please note the FACE of the Circular has thickness and front facing coordinates need extraction


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