简体   繁体   English

在Android SQLite数据库中存储3D模型

[英]Storing 3D models in Android SQLite Database

I would like to know if it is possible to store 3D objects into android SQLite Database to retrieve the object and use it. 我想知道是否可以将3D对象存储到android SQLite数据库中以检索该对象并使用它。 If it is possible, then may I know if there are any tutorials/ guidelines to do it? 如果可以的话,我可以知道是否有任何教程/指南可以做到吗? Else any other way to do it? 还有其他方法吗?

Thank you. 谢谢。

If possible, it would be best to store models as collection of numbers in a proper database structures. 如果可能的话,最好将模型作为数字集合存储在适当的数据库结构中。 I didn't specify what models you mean but if they can be described by a series of numbers (as most models do), you should be able to store them this way. 我没有指定您的意思是什么模型,但是如果可以用一系列数字来描述它们(就像大多数模型一样),那么您应该能够以这种方式存储它们。

A very simple example is a rectangle. 一个非常简单的示例是矩形。 A rectangle may be described by 4 parameters: (x,y) of top-left corner and (x,y) of the bottom-right corner. 矩形可以用四个参数描述:左上角的(x,y)和右下角的(x,y)。 So your database would have 4 columns to store those values for each rectangle. 因此,您的数据库将有4列来存储每个矩形的值。 Obviously, 3D models are more complicated but can be expressed using a series of numbers too. 显然,3D模型更为复杂,但也可以使用一系列数字表示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM