Skip to main content
Question

3D Bounding Box as a polymesh

  • November 15, 2017
  • 2 replies
  • 30 views

Forum|alt.badge.img

How can I simplify my 3D bounding boxes of pointclouds so that they aren't 3D polymeshes on output but simplified 3D solids? Also is there a way to merge them at the same time into one 3D solid?

This is my workspace as it is at the minute

2 replies

takashi
Influencer
  • November 15, 2017

Hi @samstibbs73, in the FME Geometry Model, there are some types belonging to Simple Solid. See here to learn more: FME Geometry Model

Your workflow generates Extrusions, which is also a kind of Simple Solid. If Extrusion doesn't satisfy your requirement, which type of Simple Solid do you need to create?


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • November 15, 2017

Hi @samstibbs73,

To creste the simplest possible geometry within FME, you can create a Box from the Pointcloud bounds.

After the BoundsExtractor, add an AttributeCreator to create the attribute _geometry from the text below:

<?xml version="1.0" encoding="US_ASCII" standalone="no" ?>
 <geometry>
   <box>
     <minCoord x="@Value(_xmin)" y="@Value(_ymin)" z="@Value(_zmin)"/>
     <maxCoord x="@Value(_xmax)" y="@Value(_ymax)" z="@Value(_zmax)"/>
   </box>
 </geometry>

Next, add a GeometryReplacer with the Geometry Encoding set to FME XML and the Geometry source set to the attribute _geometry. This will replace your pointcloud with a 3D Box from the bounds.

If you want to merge them, you can try the FME Hub transformer SolidDissolver. However the output of this will be a Brep solid.


Reply


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