File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
FragmentsModels/src/model
Importers/IfcImporter/src/geometry/geometry Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export class MeshManager {
69
69
const model = this . list . get ( modelId ) ;
70
70
if ( ! model ) return ;
71
71
if ( tileRequestClass === TileRequestClass . CREATE ) {
72
+ if ( request . objectClass === undefined ) return ;
72
73
const tile = this . create ( request ) ;
73
74
this . setTileData ( tile , request ) ;
74
75
model . tiles . set ( tile . userData . tileId , tile ) ;
Original file line number Diff line number Diff line change @@ -189,6 +189,12 @@ export function getShellData(geometry: {
189
189
const profile = new Profiles ( face . plane ) ;
190
190
const openEdges = face . getOpenEdges ( ) ;
191
191
192
+ if ( openEdges . length === 0 ) {
193
+ // TODO: Something went wrong with geometry generation. Just return raw data
194
+ console . log ( "No open edges found. Using raw geometry." ) ;
195
+ return getRawShellData ( index , position , bbox ) ;
196
+ }
197
+
192
198
for ( const edge of openEdges ) {
193
199
profile . add ( edge ) ;
194
200
}
You can’t perform that action at this time.
0 commit comments