اكتشاف تنسيق ملف 3D
Contents
[
Hide
]
باستخدام Aspose.3D for Python via .NET API ، قد يكتشف المطورون تنسيق ملفات 3D المدعومة قبل فتحها لأن ملحق الملف لا يضمن أن محتوى الملف مناسب.
Detect orormat roقواعد اللغة ple وافرة
Tانه يتبع رمز العينة يوضح كيفية الكشف عن تنسيق ملف (باستخدام مسار الملف أو تيار) والتحقق من امتداده.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.threed as a3d | |
# For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET | |
# Detect the format of a 3D file | |
inputFormat = a3d.FileFormat.detect("document.fbx"); | |
# Display the file format | |
print("File Format: " + str(inputFormat)) |