Skip to content

Commit

Permalink
Fixes a potential issue when trying to use CachedContentFactory with …
Browse files Browse the repository at this point in the history
…MeshContent. See #97 for issue tracking the absence of the proper implementation.

Signed-off-by: Ralph Gasser <[email protected]>
  • Loading branch information
ppanopticon committed Aug 19, 2024
1 parent 4ede0d8 commit 6311582
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.vitrivr.engine.core.model.content.impl.cache.CachedAudioContent
import org.vitrivr.engine.core.model.content.impl.cache.CachedContent
import org.vitrivr.engine.core.model.content.impl.cache.CachedImageContent
import org.vitrivr.engine.core.model.content.impl.cache.CachedTextContent
import org.vitrivr.engine.core.model.content.impl.memory.InMemoryMeshContent
import org.vitrivr.engine.core.model.mesh.Model3D
import org.vitrivr.engine.core.model.metamodel.Schema
import java.awt.image.BufferedImage
Expand Down Expand Up @@ -119,7 +120,9 @@ class CachedContentFactory : ContentFactoriesFactory {

override fun newMeshContent(model3D: Model3D): Model3DContent {
check(!this.closed) { "CachedContentFactory has been closed." }
TODO()
val content = InMemoryMeshContent(model3D) /* TODO: Caching. */
logger.warn { "Caching of MeshContent is not yet implemented. Using in-memory content instead." }
return content
}


Expand Down

0 comments on commit 6311582

Please sign in to comment.