Skip to main content
Solved

count number of points in a solid

  • November 29, 2018
  • 4 replies
  • 66 views

Forum|alt.badge.img+1

Hi FME community

 

 

I try to count the number of points (from *.las point cloud) in a solid. The solid comes from an extruded polygon.

 

 

The goal of it is to figure out if the point cloud matches an existing 2D CAD Plan. To do this I take the polyline of the walls and extrude them. Afterwards I would like to count the number of point inside the extruded solid (wall). If this results in many points I can assume that the wall is correct - if not the wall must be incorrect.

 

 

It would be great if someone has any idea and can help me. I only struggle with the count of the points in the solid.

 

 

Thanks in advance and kind regards form Switzerland

 

Dominik

Best answer by dominik

Hi takashi

 

 

Thanks for your effort and answer. In the meantime I figure out a similar way:

 

1. I use the 2DForcer for the point cloud (so every point is on z=0)

 

2. I use an PointOnAreaOverlayer to count the number of points inside the wall

 

 

This works perfect for me!

 

 

Thanks anyway!

 

Dominik
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.

4 replies

takashi
Celebrity
  • 7843 replies
  • November 29, 2018

Hi, if the solid is a simple one which is created by extruding a flat polygon towards z-axis direction, a possible way is:

  1. BoundsExtractor: Extarct zmin and zmax of the extrusion solid.
  2. SurfaceFootprintReplacer: Replace the solid with a 2D polygon.
  3. Clipper (Check the Merge Attributes option): Clip the point cloud by the polygon.
  4. PointCloudFilter: Create a point cloud consisting of points whose z-coordinate are within the zmin and zmax.
  5. PointCloudPropertyExtractor: Count the number of the resulting point cloud.

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • November 29, 2018

@dominik

You can use a clipper for that

Use your solid as clipper.

 


Forum|alt.badge.img+1
  • Author
  • 6 replies
  • Best Answer
  • November 29, 2018

Hi takashi

 

 

Thanks for your effort and answer. In the meantime I figure out a similar way:

 

1. I use the 2DForcer for the point cloud (so every point is on z=0)

 

2. I use an PointOnAreaOverlayer to count the number of points inside the wall

 

 

This works perfect for me!

 

 

Thanks anyway!

 

Dominik

takashi
Celebrity
  • 7843 replies
  • November 29, 2018

@dominik

You can use a clipper for that

Use your solid as clipper.

 

I didn't know the Clipper supports 3D clipping on point cloud. Good to hear :-) Thanks.