create_dummy_file_system method

create_dummy_file_system()

Create a dummy file system, read/write operations are dummy operations.

Returns

A dummy file system


@staticmethod
def create_dummy_file_system():
    ...

Example

The following code shows how to export file to memory, and ignore all dependent file generation.

from aspose.threed import FileFormat, Scene
from aspose.threed.entities import Box
from aspose.threed.shading import LambertMaterial
from aspose.threed.utilities import FileSystem
from io import BytesIO

# malzeme ile bir sahne oluştur
scene = Scene()
scene.root_node.create_child_node(Box()).material = LambertMaterial()
# kaydetme seçeneği oluştur ve dosya sistemini belirt, böylece bağımlı dosya belleğe yazılacak
opt = FileFormat.WAVEFRONT_OBJ.create_save_options()
dfs = FileSystem.create_dummy_file_system()
opt.file_system = dfs
# obj'nin malzeme dosya adı obj'nin dosya adıyla ilişkilidir, bu yüzden açık bir ada ihtiyacımız var.
opt.file_name = "test.obj"
with BytesIO() as ms:
    scene.save(ms, opt)

See Also