Public API Changes Aspose.3D 16.9.0
Contents Summary
- Smport 3D cene cene 07ourource PDF
- PDF Format içinde 07ave bir 3D cene cene
- Aspose.ThreeD.Entities. olyolygongonodifier lass lass içinde dds dds Triangulate Method
- Aspose.ThreeD.Entities. olyolygonModifier lass lass içinde dds dds iki BuildTangentBinormal Methods
Smport 3D cene cene 07ourource PDF
Developers son sürümü (16.9.0) veya daha yüksek, geliştiriciler 3D görüntülerini PDF dosyasından alabilir.
Dds dds Aspose.ThreeD.Formats. dfdfdfoadlass ptions lass lass
We Pdfdfoadptions ptions class ekledi. It, PDF dosyasından içerik yüklemede yardımcı olur. Developers korumalı PFs için şifre uygulayabilir.
Şifre korumalı PDF dosyasından Open sahne
// 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);
Dds dds Aspose.ThreeD. Fileiormat ve Aspose.ThreeD.Formats. dfdfdformat lass lass
We, yükleme ve kaydetme amaçlı 07ile. ormat sınıfında PDF formatının bir girişini eklemiştir. The dfdfdformat sınıfı PDFs işlemek için yardımcı olur.
public static readonly Aspose.ThreeD.Formats.PdfFormat PDF;
Extract PDF dosyasından tüm ham 3D içerikleri
// 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);
}
07xtract tüm 3D sahneler ve FBX dosyasına kaydedin
// 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);
}
PDF Format içinde 07ave bir 3D cene cene
Developers son sürümü (16.9.0) veya daha yüksek, geliştiriciler PDF formatında desteklenen tüm 3D dosyalarını kaydedebilir.
Dds dds Aspose.ThreeD.Formats. dfdfSaveOptions class ve Aspose.ThreeD.Formats. dfdfdftingtingchecheme/dfdfdfenderoode Enums
To dfdfdfaveOptions PDF formatında çıktıdan tasarruf etmeden önce ayarı uygulamada yardımcı olur. Developers, 3D sahnesini aşağıdaki gibi PDF formatına kaydetmeden önce bir rendering modu ve aydınlatma şeması ayarlayabilir:
07bir silindir ile 3D PDF reate ve CAD optimize edilmiş aydınlatma ile gölgeli illüstrasyon modunda işlendi
// 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);
Aspose.ThreeD.Entities. olyolygongonodifier lass lass içinde dds dds Triangulate Method
We, bir parametre olarak bir cene cene sınıfı nesneyi alan olyolygongonodifier sınıfında başka bir aşırı yük eklemiştir.
FBX dosyasında tüm poligonları üçgenlere yönlendirin
// 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);
Aspose.ThreeD.Entities. olyolygonModifier lass lass içinde dds dds iki BuildTangentBinormal Methods
We, olyolygongonodifier sınıfında iki BuildTangentBinormal yöntemi eklemiştir. One yöntemi Scene sınıfı nesneyi bir parametre olarak alır ve diğeri Mesh sınıfı nesnesini bir parametre olarak alır.
FBX dosyasındaki tüm ağlar için tangent uild tanjant ve binormal veriler
// 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);