Skip to main content
Solved

Cad 3D Line to 3D Polygon and display in CesiumJS

  • September 26, 2019
  • 4 replies
  • 134 views

I draw 3D polyline at AutoCAD

and save it dwg&dxf import at FME Workbench

I wanna convert 3D polyline to 3d Polygon.

3D polyline is all topologically conneted.

This is CAD VIEW.(FIle attached so you can download it)

 

Actually it's Drawing related to road construction.

This layer name 'Side gutter'

I wanna display at CesiumJS with photogrammetry model

Like This

I tried many complex combination of transform(e.g 'Chopper', "AreaBuilder', 'LineCombiner', 'Linecloser', 'GeometryCoercer') but there was no result that i want.

The result was Some surface(polygon) is not make.

In spite of 3D polyline is topologically connected

 

 

Best answer by daveatsafe

Hi @dhdbtkd,

The topology building tools in FME (ie. AreaBuilder, LineCombiner) are presently designed for use with 2D or 2.5D geometries, not true 3D. Because of this, FME cannot make surface from 3D lines.

If you were able to get closed polylines from the CAD data, these could be coerced to areas, then converted to faces with the FaceReplacer, which would be compatible with Cesium.

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

4 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • Best Answer
  • September 26, 2019

Hi @dhdbtkd,

The topology building tools in FME (ie. AreaBuilder, LineCombiner) are presently designed for use with 2D or 2.5D geometries, not true 3D. Because of this, FME cannot make surface from 3D lines.

If you were able to get closed polylines from the CAD data, these could be coerced to areas, then converted to faces with the FaceReplacer, which would be compatible with Cesium.


  • Author
  • September 30, 2019
daveatsafe wrote:

Hi @dhdbtkd,

The topology building tools in FME (ie. AreaBuilder, LineCombiner) are presently designed for use with 2D or 2.5D geometries, not true 3D. Because of this, FME cannot make surface from 3D lines.

If you were able to get closed polylines from the CAD data, these could be coerced to areas, then converted to faces with the FaceReplacer, which would be compatible with Cesium.

Wow.

All drawing all face with closed polyline in AutoCAD!

I think It will be hard labor!

Thank you for your answer daveatsafe!!


  • Author
  • October 1, 2019
daveatsafe wrote:

Hi @dhdbtkd,

The topology building tools in FME (ie. AreaBuilder, LineCombiner) are presently designed for use with 2D or 2.5D geometries, not true 3D. Because of this, FME cannot make surface from 3D lines.

If you were able to get closed polylines from the CAD data, these could be coerced to areas, then converted to faces with the FaceReplacer, which would be compatible with Cesium.

Hi @daveatsafe

I have new problem with FaceReplacer(your advise)

As your comment, I draw all closed polyline from AutoCAD.

and use FaceReplacer.

The result.

Almost Face is Solved.

But when Face has curve(turn, break), it show not properly.

What i have to do to solve this problem??

I think split curve face(big one) to combination of flat face(small part)

See Screenshot

and Thank you for your help last time.


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • October 1, 2019
dhdbtkd wrote:

Hi @daveatsafe

I have new problem with FaceReplacer(your advise)

As your comment, I draw all closed polyline from AutoCAD.

and use FaceReplacer.

The result.

Almost Face is Solved.

But when Face has curve(turn, break), it show not properly.

What i have to do to solve this problem??

I think split curve face(big one) to combination of flat face(small part)

See Screenshot

and Thank you for your help last time.

In the FaceReplacer, please set Thickness mode and Angular mode to Ignore. After the FaceReplacer, send the faces to a Triangulator, then send the TINSurface output to the Cesium writer. This should ensure the surface bends are proper.


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