XbimWindowsUI
XbimWindowsUI copied to clipboard
Shape representation with tessellation and without Subcontext is not shown
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:
- Is this issue related to XbimWindowsUI or XbimGeometry?
- Is it intentionally that the suface feature shows up after selection only?
- Is there a better possiblity to visualize a 2D plane geometry?
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;
}