XbimWindowsUI icon indicating copy to clipboard operation
XbimWindowsUI copied to clipboard

Shape representation with tessellation and without Subcontext is not shown

Open Noranius opened this issue 6 years ago • 1 comments

Use Case: visualize a surface feature at another element without textures or similar.

Example_Surface Feature.ifc.txt

Expected behavior: The Surface feature is shown as a 2D patch at the beam without any additional action.

Observed behavior: The surface feature (respectively its geometry) is shown after selecting it in the hierarchy only and disappears after clicking somewhere else.

Questions:

  1. Is this issue related to XbimWindowsUI or XbimGeometry?
  2. Is it intentionally that the suface feature shows up after selection only?
  3. Is there a better possiblity to visualize a 2D plane geometry?

Noranius avatar Dec 16 '19 09:12 Noranius

Hi Noranius, if you modify the GetShapeInstancesToRender routine, it works fine:

   protected IEnumerable<XbimShapeInstance> GetShapeInstancesToRender(IGeometryStoreReader geomReader, HashSet<short> excludedTypes)
    {
        var shapeInstances = geomReader.ShapeInstances
            .Where(s => (s.RepresentationType == XbimGeometryRepresentationType.OpeningsAndAdditionsIncluded ||
                   s.RepresentationType == XbimGeometryRepresentationType.OpeningsAndAdditionsOnly)
                        && !excludedTypes.Contains(s.IfcTypeId));
        return shapeInstances;
    }

eugeniogo avatar Dec 30 '19 16:12 eugeniogo