Skip to main content
Question

How can I convert a cylinder into a cuboid ?

  • March 30, 2022
  • 6 replies
  • 77 views

katt
Supporter
Forum|alt.badge.img+12
  • Supporter
  • 41 replies

I have a cylinder that I created using a 3D Bufferer around a 3D Line. How can I convert this cylinder into a cuboid ? Thx. The image helps to understand what I mean.

6 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • March 30, 2022

Hi @katt​,

Please use the BoundingBoxReplacer transformer, with the Replace With parameter set to 3D Bounding Cube.


katt
Supporter
Forum|alt.badge.img+12
  • Author
  • Supporter
  • 41 replies
  • March 31, 2022

Hi @katt​,

Please use the BoundingBoxReplacer transformer, with the Replace With parameter set to 3D Bounding Cube.

This is what I tried earlier already but it didn't return what I wanted. see image (on the left side my cylinder, on the right side the boundingbox replacer result with parameter set to 3D Bounding Cube).I'm using FMe 2021.2


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • March 31, 2022

Hi @katt​,

You could try using the PipeReplacer instead of the Bufferer, then use a PipeEvaluator with the number of edges set to 4 to produce a square section in the output.


katt
Supporter
Forum|alt.badge.img+12
  • Author
  • Supporter
  • 41 replies
  • April 1, 2022

Hi @katt​,

You could try using the PipeReplacer instead of the Bufferer, then use a PipeEvaluator with the number of edges set to 4 to produce a square section in the output.

Thank you. But how can I turn the result of the PipeEvaluator to look like red square ?image


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • April 4, 2022

Thank you. But how can I turn the result of the PipeEvaluator to look like red square ?image

Hi @katt​,

I'm sorry, but we cannot currently control the orientation of the pipe cross section. I have created an enhancement request for our development team (FMEENGINE-72899) to add rectangular cross sections to the FMEPipe geometry, and will notify you as soon as this is available.


katt
Supporter
Forum|alt.badge.img+12
  • Author
  • Supporter
  • 41 replies
  • April 4, 2022

Thank you. But how can I turn the result of the PipeEvaluator to look like red square ?image

Thank you very much for your help. And yes, please keep me posted on that enhancement.