Hangublic API hangمعلقة في Aspose.3D 16.9.0

Contents Sأوماري

Import 3D cencene من 07ource PDF

Uالغناء الإصدار الأخير (16.9.0) أو أعلى ، يمكن للمطورين استرداد 3D مشاهد من ملف الإدخال PDF.

Adds Aspose.ThreeD. orormat. dfdfLoadOptions lass

لقد أضاف We فئة ptions dfLoadO. It يساعد في تحميل المحتوى من ملف الإدخال PDF. قد تطبق opers evelكلمة المرور ل protected protected protected المحمية s.

Oمشهد القلم من ملف PDF محمية بكلمة مرور

 // set path with filename and extension 

string path = @"House_Design.pdf";

// create a new scene

Scene scene = new Scene();

// use loading options and apply password

PdfLoadOptions opt = new PdfLoadOptions() {Password = Encoding.UTF8.GetBytes("password")};

// open scene

scene.Open(path, opt);

Adds Aspose.ThreeD. orileFormat و Aspose.ThreeD. orormat. dfdfFormat C

لقد أضاف We إدخال تنسيق PDF في فئة orileFormat لأغراض التحميل saving. Tانه PdfFormat الطبقة يساعد على التلاعب PPFs.

 public static readonly Aspose.ThreeD.Formats.PdfFormat PDF;

Extract جميع المحتويات الخام 3D من ملف PDF

 // set PDF file path and password

string path = @"House_Design.pdf";

byte[]password = null;

// extract 3D contents

List<byte[]> contents = FileFormat.PDF.Extract(path, password);

int i = 1;

// iterate through the contents and in separate 3D files

foreach (byte[]content in contents)

{

    string fileName = "3d-" + (i++);

    File.WriteAllBytes(fileName, content);

}

Extract جميع مشاهد 3D وحفظها في ملف FBX

 // set PDF file path and password

string path = @"House_Design.pdf";

byte[]password = null;

List<Scene> scenes = FileFormat.PDF.ExtractScene(path, password);

int i = 1;

// iterate through the scenes and save in 3D files

foreach (Scene scene in scenes)

{

    string fileName = "3d-" + (i++) + ".fbx";

    scene.Save(fileName, FileFormat.FBX7400ASCII);

}

Save a 3D cencene في PDF orormat

Uالغناء الإصدار الأخير (16.9.0) أو أعلى ، يمكن للمطورين حفظ جميع الملفات المدعومة 3D في تنسيق PDF.

Adds Aspose.ThreeD

يساعد ptions he dfdfSaveOفي تطبيق الإعداد قبل الحفظ في تنسيق الإخراج PDF. Dإيفليرز يمكن تعيين وضع تقديم ونظام الإضاءة قبل توفير مشهد 3D في تنسيق PDF على النحو التالي:

Rereate 3D PDF مع اسطوانة ، وقدمت في وضع التوضيح المظلل مع CAD الإضاءة الأمثل

 // create a new scene

Scene scene = new Scene();

// create a cylinder child node

scene.RootNode.CreateChildNode("cylinder", new Cylinder()).Material = new PhongMaterial() { DiffuseColor = new Vector3(Color.DarkCyan)};

// set rendering mode and lighting scheme

PdfSaveOptions opt = new PdfSaveOptions();

opt.LightingScheme = PdfLightingScheme.CAD;

opt.RenderMode = PdfRenderMode.ShadedIllustration;

// save in the PDF format

scene.Save("output.pdf", opt);

Adds riريانغولي Method في Aspose.ThreeD. nntities.

وقد أضاف We الزائد آخر من طريقة ريانغويتي في فئة أوديفييه أوليغونغونغ التي تأخذ كائن فئة cenسين كمعلمة.

Convert جميع المضلعات إلى مثلثات في ملف FBX

 // load an existing 3D file

Scene scene = new Scene("original.fbx");

// triangulate a scene

PolygonModifier.Triangulate(scene);

// save 3D scene

scene.Save("triangulated.fbx", FileFormat.FBX7400ASCII);

Adds اثنين من thouildTangentBالأمراض غير الطبيعية في Aspose.ThreeD.

لقد أضاف We اثنين من الطرق غير الطبيعية في الطرق غير الطبيعية في فئة أوديفير أوليغونديفير. طريقة ne ne تأخذ كائن فئة cencene كمعلمة وآخر يأخذ كائن فئة Mesh كمعلمة.

Build بيانات متشابكة وبينورمال لجميع تنسجم في ملف FBX

 // load an existing 3D file

Scene scene = new Scene("original.fbx");

// triangulate a scene

PolygonModifier.BuildTangentBinormal(scene);

// save 3D scene

scene.Save("output.fbx", FileFormat.FBX7400ASCII);