Skip to content

Commit

Permalink
Avoid caching geometry during attachment surface creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tordanik committed Nov 29, 2024
1 parent 5196ff6 commit bb560b8
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package org.osm2world.core.world.data;

import java.util.Collection;
import java.util.List;

import javax.annotation.Nullable;

import org.osm2world.core.target.common.mesh.LevelOfDetail;
import org.osm2world.core.target.common.mesh.Mesh;
import org.osm2world.core.target.common.model.ModelInstance;
import org.osm2world.core.world.attachment.AttachmentSurface;

/**
* subtype of {@link ProceduralWorldObject} which caches internal results to avoid repeated calculations
Expand Down Expand Up @@ -38,12 +36,6 @@ public List<ModelInstance> getSubModels() {
return target.subModels;
}

@Override
public Collection<AttachmentSurface> getAttachmentSurfaces() {
fillTargetIfNecessary();
return target.attachmentSurfaces;
}

/**
* if results depend on LOD, returns the currently configured LOD.
* Can be null if this {@link ProceduralWorldObject} always produces geometry for all LOD.
Expand Down

0 comments on commit bb560b8

Please sign in to comment.