IFC Import. Triangulated Geometry


#1

@SketchUp Team. Please do not triangulate Geometry after IFC-Import.
Modell triangulated by hidden lines. IFC Export -> IFC Import = ~3x More Faces


#2

Thanks

In the mean time, check out ThomThom’s CleanUp extension.

Cheers
CD


#3

Yes, I notice there is no Options sub-dialog available from the Import filepicker dialog.


#4

This is faster.

class Cleaner
  @toErase = []
  def initialize
    @toErase = []
  end
  def clear(entities)
    collectedges(entities)
    Sketchup.active_model.entities.erase_entities @toErase
    @toErase.clear
  end

  def collectedges(entities)
    entities.each { | entity|
      if entity.is_a? Sketchup::Edge and !entity.visible?
        @toErase << entity
      end

      if entity.is_a? Sketchup::ComponentInstance
        collectedges(entity.definition.entities)
      end
    }
  end
end