Aspose.3D FOSS for .NET

Tham chiếu API cho Aspose.3D 26.1.0 (.NET 10.0+, giấy phép MIT).

Tất cả các lớp nằm trong Aspose.ThreeD không gian tên gốc. Lệnh using gốc là:

using Aspose.ThreeD;

Quy ước đặt tên C#: Tất cả các thuộc tính sử dụng cú pháp thuộc tính chuẩn của C#. Ví dụ, sử dụng scene.RootNode thay vì scene.getRootNode(), và transform.Translation = ... thay vì transform.setTranslation(...).

Cách đặt tên trường vector: Thư viện có hai bộ loại vector. Aspose.ThreeD.Utilities.Vector2/3/4 (được sử dụng bởi Mesh.ControlPoints, hình học, và hầu hết các phép toán toán học) là độ chính xác double với chữ thường các trường công khai (v.x, v.y, v.z, v.w). Đơn giản hơn Aspose.ThreeD.Vector2/3/4 cấu trúc (trong Vector.cs) là độ chính xác đơn (float) với chữ hoa các trường public (v.X, v.Y, v.Z). FVector2/3/4QuaternionMatrix4 sử dụng truy cập trường viết hoa. Sử dụng Aspose.ThreeD.Utilities các kiểu cho công việc hình học.


Đồ thị Cảnh Cốt lõi

ClassDescription
A3DObjectThe base class of all Aspose.ThreeD objects, all sub classes will support dynamic properties.
AnimationChannelAnimationChannel.AnimationChannel creates a new animation channel with no target specified.
AnimationClipThe Animation clip is a collection of animations.
AnimationNodeAspose.3D’s supports animation hierarchy, each animation can be composed by several animations and animation’s key-frame definition.
ArrayListAspose.3D has its own highly optimized implementation of List{T} for better loading/saving performance Only this interface is exposed for user with IList{T} compatible and similar interfaces.
AssetInfoInformation of asset.
AxisSystemAxis system is an combination of coordinate system, up vector and front vector.
BasicLoadOptionsBasic load options.
BindPointA BindPoint is usually created on an object’s property, some property types contains multiple component fields(like a Vector3 field), will generate channel for each component field and connects the field to one or more keyframe sequence instance(s) through the channels.
BoneMột xương xác định các phần của điểm kiểm soát của địa phương, và xác定 trọng lượng hỗn hợp cho mỗi điểm điều khiển.
BooleanOperandKhóa học này bao gồm các mảnh được biến đổi như là một hoạt động của hoạt hình Boolean.
BooleanOperatorClass with 12 methods and 9 properties.
BoxBox.
CameraThe camera describes the eye point of the viewer looking at the scene.
CircleMột curve bao gồm một tập hợp các điểm ở cạnh hình dạng vòng tròn.
ColladaSaveOptionsSave options for Collada format.
CompositeCurveA bao gồm nhiều phân đoạn curve.
CurveCác lớp cơ sở của tất cả các thực hiện curve.
CustomObjectRepresents custom object data.
CylinderParameterized Cylinder.
DeformerBase class for and.
DishParameterized dish.
DracoFormatGoogle Draco format.
DracoSaveOptionsSave options for Google draco files.
EllipseMột Ellipse định nghĩa một tập hợp các điểm hình thành hình dạng của ellipsa.
EntityThe base class of all entities.
EntityRendererKeyThe key of registered entity renderer.
ExportExceptionExport exception.
ExtrapolationExtrapolation.Type gets or sets the extrapolation mode using the ExtrapolationType enum.
FbxLoadOptionsLoad options for FBX format.
FbxSaveOptionsSave options for FBX format.
FileFormatFile format definition.
FileFormatTypeFile format type.
FileSystemFile system encapsulation.
FileSystemFactoryFactory class for FileSystem.
FrustumThe base class of Camera and Light.
GeometryLớp cơ sở của tất cả các vật thể địa phương có thể được thực hiện (như Mesh, Box, Cylinder và vv).
GlobalTransformGlobal chuyển đổi tương tự như nhưng nó là không thay đổi trong khi nó đại diện cho sự biến đổi đánh giá cuối cùng.
GltfLoadOptionsLoad options for glTF format.
GltfSaveOptionsSave options for glTF format.
GroupGroup.Group(name:string) creates a Group with the specified name.
HalfSpacerepresents a infinity space which is split by a plane, this can be used with.
IOConfigIO config for serialization/deserialization.
IOExtensionIOExtension.Write writes the Matrix4 value to the provided BinaryWriter.
ImageRenderOptionsImage render options.
ImportExceptionImport exception.
KeyFrameKeyFrame.KeyFrame creates a new empty key frame instance.
KeyframeSequenceKeyframeSequence.KeyframeSequence creates an empty keyframe sequence with no property name.
LambertMaterialDung tích cho Lambert Shading Model.
LicenseLicense management class (not available in FOSS version).
LightThe light illuminates the scene.
LineA polyline is a path defined by a set of points with segments, and connected by edges, which means it can also be a set of connected line segments.
LinearExtrusionChiết xuất tuyến tính lấy một hình dạng 2D như là nhập khẩu và mở rộng hình thức trong chiều cao thứ 3.
LoadOptionsBase class of load options.
MaterialMaterial defines the parameters necessary for visual appearance of geometry.
MathUtilsMathUtils.CalcNormal calculates the normal vector of a polygon defined by an array of Vector3 points.
MeshA mesh is made of many n-sided polygons.
Metered- Mức độ quản lý giấy phép (không có sẵn trong phiên bản FOSS).
Microsoft3MFFormatVí dụ định dạng tệp cho Microsoft 3MF với các tiện ích liên quan đến 3mF.
Microsoft3MFSaveOptionsClass with 2 methods and 7 properties.
MorphTargetChannelA MorphTargetChannel is used by to organize the target geometries.
MorphTargetDeformerMorphTargetDeformer provides per-vertex animation.
NodeRepresents an element in the scene graph.
NurbsCurveNURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its control points, a set of weighted control points and a knot vector The w component in co.
NurbsDirectionA 3D surface has two direction, the U and V, the NurbsDirection defines data for each direction.
NurbsSurfaceis a surface represented by NURBS(Non-uniform rational basis spline), A is defined by two and .
ObjLoadOptionsLoad options for Wavefront OBJ format.
ObjSaveOptionsSave options for Wavefront OBJ format.
ParseExceptionParseException.ParseException creates a new ParseException with the provided error message.
PatchA is a parametric modeling surface, similar to , it’s also defined by two , the and .
PatchDirectionPatch’s U and V direction.
PbrMaterialMaterial for physically based rendering based on albedo color/metallic/roughness.
PdfFormatAdobe’s Portable Document Format.
PdfLoadOptionsOptions for PDF loading.
PdfSaveOptionsThe save options in PDF exporting.
PhongMaterialDung tích cho Blinn-phong Shading Model.
PlaneParameterized plane.
PlyFormatThe PLY format.
PlyLoadOptionsPlyLoadOptions.PlyLoadOptions creates a new instance with default options for loading PLY files.
PlySaveOptionsPlySaveOptions.PlySaveOptions constructs a new instance with default PLY save settings.
PointCloudMây điểm không chứa thông tin topology mà chỉ có các điểm kiểm soát và các yếu tố trần.
PolygonBuilderA helper class to build polygon for.
PolygonModifierPolygonModifier.Triangulate triangulates all faces of the supplied Mesh into triangles.
PosePose.
Primitive- Lớp cơ bản cho tất cả các nguyên tử.
Profile2D Profile in xy plane.
PropertyClass to hold user-defined properties.
PropertyCollectionThe collection of properties.
PyramidParameterized pyramid.
RectangularTorusParameterized rectangular torus.
RevolvedAreaSolidKhóa học này đại diện cho một mô hình vững chắc bằng cách xoay một phần chéo được cung cấp bởi một hồ sơ xung quanh một axis.
RvmFormatThe RVM Format.
SaveOptionsBase class of save options.
SceneA scene is a top-level object that contains the nodes, geometries, materials, textures, animation, poses, sub-scenes and etc.
SceneObjectThe root class of objects that will be stored inside a scene.
SegmentMột phân khúc trong một curve composite.
SemanticAttributeSemanticAttribute.SemanticAttribute creates a new attribute with the specified vertex field semantic.
ShapeHình dạng mô tả sự biến dạng trên một tập hợp các điểm kiểm soát, tương tự như biến thể cluster ở Maya.
SkeletonThe Skeleton is mainly used by CAD software to help designer to manipulate the transformation of skeletal structure, it’s usually useless outside the CAD softwares.
SkinDeformerMột biến dạng da chứa nhiều xương để làm việc, mỗi xương trộn một phần của địa chất bằng trọng lượng của điểm kiểm soát.
SphereParameterized sphere.
StlLoadOptionsLoad options for STL format.
StlSaveOptionsSave options for STL format.
SweptAreaSolidA SweptAreaSolid constructs a geometry by sweeping a profile along a directrix.
TextureKhóa này xác định cấu trúc từ một tệp bên ngoài.
TextureBase- Khóa học cơ bản cho tất cả các cấu trúc cụ thể.
TextureSlotTexture slot trong Material, có thể được liệt kê thông qua ví dụ vật liệu.
TorusParameterized torus.
TransformA transform contains information that allow access to object’s translate/scale/rotation or transform matrix at minimum cost This is used by local transform.
TransformBuilderTransformBuilder lets developers compose, prepend, or append transformation matrices with a selectable composition order, simplifying complex object placement.
TransformedCurveA TransformedCurve gives a curve a placement by using a transformation matrix.
TriMeshA TriMesh contains raw data that can be used by GPU directly.
TrialExceptionTrial exception.
TrimmedCurveMột curve được gắn kết cắt ngắn đường cong cơ bản ở cả hai phần.
VertexVertex.ReadVector3(field) reads a 3‑component vector from the specified vertex field, enabling extraction of position data.
VertexDeclarationVertexDeclaration.VertexDeclaration creates a new, empty vertex declaration instance.
VertexElementBase class of vertex elements A vertex element type is identified by VertexElementType.
VertexElementBinormalVertexElementBinormal.VertexElementBinormal() creates a new instance with default mapping and reference modes.
VertexElementDoublesTemplateMột lớp trợ giúp để xác định các thực hiện cụ thể.
VertexElementEdgeCreaseDefines the edge crease for specified components.
VertexElementFVectorMột lớp trợ giúp để xác định các thực hiện cụ thể.
VertexElementHoleDefines if specified polygon is hole.
VertexElementIntsTemplateMột lớp trợ giúp để xác định các thực hiện cụ thể.
VertexElementMaterialVertex element with material index.
VertexElementNormalVertexElementNormal.VertexElementNormal(mappingMode, referenceMode) creates a new VertexElementNormal using the given mapping and reference modes.
VertexElementPolygonGroupĐịnh nghĩa nhóm polygon cho các thành phần cụ thể để nhóm liên quan đến poligons cùng nhau.
VertexElementSmoothingGroupA smoothing group is a group of polygons in a polygon mesh which should appear to form a smooth surface.
VertexElementSpecularĐịnh nghĩa màu sắc chi tiết cho các thành phần cụ thể.
VertexElementTangentVertexElementTangent.Tangents provides a list of Vector4 objects representing per‑vertex tangent data.
VertexElementTemplateMột lớp trợ giúp để xác định các thực hiện cụ thể.
VertexElementUVVertex element with UV coordinates.
VertexElementUserDataDefines custom user data for specified components.
VertexElementVertexColorVertex element with vector data (normals, tangents, etc.) /// /// Vertex element with color data.
VertexElementVertexCreaseDefines the vertex crease for specified components.
VertexElementVisibilityDefines if specified components is visible.
VertexElementWeightĐịnh nghĩa trọng lượng hỗn hợp cho các thành phần cụ thể.
VertexFieldVertexField class lets developers define a vertex field by specifying data type, semantic, index, alias, offset, and size, and provides hashing, equality, and comparison operations.
WatermarkWatermark utilities enable embedding and extracting text watermarks in 3D files, with optional password protection and permanence.

Hình học và Lưới

InterfaceDescription
IArrayListAspose.3D has its own highly optimized implementation of List{T} for better loading/saving performance Only this interface is exposed for user with IList{T} compatible and similar interfaces.
IIndexedVertexElementVertexElement with indices data.
IMeshConvertibleEntities that implemented this interface can be converted to mesh.
INamedObjectObject that has a name.
IOrientableCác tổ chức hướng dẫn phải thực hiện giao diện này.

Các Hình Nguyên Tố Tích Hợp

StructDescription
BoundingBoxThe axis-aligned bounding box.
BoundingBox2DBoundingBox2D.BoundingBox2D initializes a new 2‑D bounding box with the specified minimum and maximum vectors.
EndPointĐiểm cuối để cắt curve, có thể là một giá trị thông số hoặc một điểm Cartesian.
FMatrix4FMatrix4.FMatrix4 creates a matrix from 16 float values representing each element.
FVector2FVector2.FVector2 creates a 2‑D vector with the given x and y float components.
FVector3Represents a 3D vector.
FVector4FVector4.FVector4(x:float, y:float, z:float, w:float) creates a 4‑D vector with given x, y, z, w values.
Matrix4Matrix4.Matrix4 constructs a 4x4 matrix from the 16 supplied float components.
QuaternionA quaternion is usually used to represent a rotation in 3D space.
RectRect represents a rectangle with position and size, offering a Contains method to test whether a point lies inside it.
RelativeRectangleRelativeRectangle.RelativeRectangle creates a rectangle with given left, top, width, height offsets.
Vector2Vector2.Vector2 creates a vector with both components set to the given scalar.
Vector3The Vector3 class supplies full 3‑D vector mathematics, including dot product, cross product, normalization, and angle calculations between directions.
Vector4Vector4.Vector4 creates a vector from a Vector3 and a double w component.

Biến Đổi và Không Gian

EnumerationDescription
AlphaSourceĐịnh nghĩa liệu cấu trúc có chứa kênh alpha hay không.
ApertureModeCamera aperture modes.
AxisAxis.
AxisAxis.XAxis represents the X axis direction.
BoneLinkModeMột chế độ liên kết của xương đề cập đến cách một xương được nối hoặc gắn liền với xương mẹ trong một cấu trúc hiê-rơ.
BooleanOperationMesh’s Boolean operation.
BoundingBoxExtent- Khung lượng của hộp kết nối.
ColladaTransformStyleThe node’s transformation style of node.
ComposeOrderLệnh để tạo thành transform matrix.
CoordinateSystemCoordinate system.
CurveDimension- Kích thước của các curves.
DracoCompressionLevelCompression level for draco file.
ExtrapolationTypeExtrapolation type.
FileContentTypeFile content type.
InterpolationLoại interpolation của khung chìa khóa.
LightTypeLight types.
MappingModeMapping mode.
NurbsTypeNURBS types.
PatchDirectionTypePatch direction’s types.
PdfLightingSchemeLightingScheme specifies the lighting to apply to 3D artwork.
PdfRenderModechế độ render cho biết phong cách mà công việc nghệ thuật 3D được render.
ProjectionTypeCamera’s projection types.
PropertyFlagsProperty flags.
ReferenceModeReference mode.
RotationModeThe frustum’s rotation mode.
RotationOrderCác điều khiển lệnh mà rx ry rz được áp dụng trong matrix chuyển đổi.
SkeletonTypeSkeleton type.
SplitMeshPolicySplit mesh policy.
StepModeStepMode.PREVIOUS_VALUE represents stepping to the previous value in a sequence.
TextureFilterCác tùy chọn lọc trong quá trình mẫu texture.
TextureMappingTexture mapping.
VertexElementTypeVertex element type.
VertexFieldDataTypeVertex field’s data type.
VertexFieldSemanticCái tên của Vertex Field.
WeightedModeWeightedMode enum describes how vertex weights are applied, supporting None, OutWeight, NextInWeight, and Both.
WrapModeTexture’s wrap mode.

Vật liệu và Đổ bóng

MethodsMethods
MaterialLớp cơ sở trừu tượng cho tất cả các loại vật liệu. Cung cấp một tên và một bộ sưu tập thuộc tính.
LambertMaterialVật liệu khuếch tán thuần cổ điển với Ambient, Diffuse, Emissive, Reflective, Transparency, và Texture các thuộc tính. Namespace: Aspose.ThreeD.Shading.
PhongMaterialMở rộng Lambert với Specular, Shininess, và SpecularPower các thuộc tính. Namespace: Aspose.ThreeD.Shading.
PbrMaterialVật liệu Physically Based Rendering với BaseColor, Metallic, Roughness, Occlusion, và các thuộc tính khe kết cấu. Namespace: Aspose.ThreeD.Shading.

Methods

MethodsMethods
CameraThực thể Camera. Kế thừa từ Frustum. Được gắn vào một Node để xác định các biến đổi góc nhìn. Không có thuộc tính đặc thù cho định dạng nào được hiển thị trong phiên bản này.

Tiện ích Toán học

MethodsMethods
Vector2Độ chính xác đôi 2-component vector (lowercase fields: x, y). Không gian tên: Aspose.ThreeD.Utilities. Được sử dụng cho tọa độ texture UV.
Vector3Độ chính xác kép 3-component vector (lowercase fields: x, y, z). Không gian tên: Aspose.ThreeD.Utilities. Vector không gian đa mục đích cho hình học.
Vector4Độ chính xác kép 4-component vector (lowercase fields: x, y, z, w). Không gian tên: Aspose.ThreeD.Utilities. Được sử dụng cho Mesh.ControlPoints và dữ liệu bình thường.
FVector3Vector float 3 thành phần độ chính xác đơn (các trường viết hoa: X, Y, Z). Được sử dụng bởi Transform.TranslationTransform.Scale.
FVector4Vector số thực 4 thành phần độ chính xác đơn (các trường viết hoa: X, Y, Z, W).
QuaternionQuaternion đơn vị để biểu diễn các phép quay (W, X, Y, Z). Được sử dụng bởi Transform.Rotation.
Matrix44x4 transformation matrix. Used for world/local transform computations and by GlobalTransform.Matrix.
BoundingBoxHộp bao trùm căn trục được định nghĩa bởi MinimumMaximum FVector3 góc.

Methods

MethodsMethods
AnimationClipBộ chứa có tên cho một phạm vi hoạt hình. A Scene có thể chứa nhiều clip. Mẫu khai báo — dữ liệu keyframe và phát lại chưa được triển khai.

Đầu vào/Đầu ra Định dạng

MethodsMethods
Scene.Open(path)Mở một tệp, phát hiện định dạng từ phần mở rộng và điền dữ liệu vào cảnh.
Scene.Open(path, options)Mở một tệp với định dạng cụ thể LoadOptions.
Scene.Open(stream)Mở từ một luồng, tự động phát hiện định dạng từ nội dung.
Scene.Open(stream, options)Mở từ một luồng với định dạng cụ thể LoadOptions.
Scene.Save(path)Lưu cảnh vào tệp; định dạng được suy ra từ phần mở rộng.
Scene.Save(path, options)Lưu với định dạng cụ thể SaveOptions.
Scene.Save(stream, options)Lưu vào luồng với định dạng cụ thể SaveOptions.
FileFormatDanh bạ các định dạng tệp được hỗ trợ. Sử dụng FileFormat.Formats (một IList<FileFormat>) để liệt kê tất cả các định dạng được hỗ trợ, hoặc FileFormat.Detect(fileName) để phát hiện định dạng dựa trên tên tệp. Các hằng số được đặt tên (ObjFormat, GltfFormat, FbxFormat, v.v.) là internal và không thể truy cập từ mã người dùng.
IOServiceTrừu tượng I/O nội bộ. Cung cấp DetectFormat() cho việc phát hiện định dạng dựa trên luồng.
LoadOptionsLớp cơ sở cho các tùy chọn tải đặc thù cho định dạng.
SaveOptionsLớp cơ sở cho các tùy chọn lưu đặc thù cho định dạng.

Định dạng OBJ

MethodsMethods
ObjLoadOptionsTùy chọn tải cho các tệp Wavefront OBJ.
ObjSaveOptionsTùy chọn lưu cho đầu ra Wavefront OBJ.

Định dạng STL

MethodsMethods
StlLoadOptionsTải các tùy chọn cho tệp STL.
StlSaveOptionsLưu các tùy chọn cho đầu ra STL.

Định dạng glTF

MethodsMethods
GltfLoadOptionsTải các tùy chọn cho tệp glTF 2.0 và GLB.
GltfSaveOptionsLưu các tùy chọn cho đầu ra glTF 2.0 và GLB. Không có thuộc tính đặc thù cho định dạng nào được hiển thị trong phiên bản này; sử dụng .glb phần mở rộng cho đầu ra nhị phân.

Định dạng FBX

MethodsMethods
FbxLoadOptionsTải các tùy chọn cho tệp FBX.
FbxSaveOptionsLưu các tùy chọn cho đầu ra FBX. Xuất FBX luôn tạo ra đầu ra nhị phân; xuất FBX dạng ASCII không hoạt động trong phiên bản này.

3MF Format

MethodsMethods
TmfLoadOptionsTải các tùy chọn cho tệp 3MF.
TmfSaveOptionsLưu các tùy chọn cho đầu ra 3MF.

Methods

MethodsMethods
FileContentTypeBộ mô tả loại nội dung: ASCII, Binary. Có sẵn như một thuộc tính trên FileFormat.
AxisXác định một trục tọa độ: XAxis, YAxis, ZAxis.
CoordinateSystemXác định quy ước hướng tay: RightHand hoặc LeftHand.

Hệ thống Thuộc tính

MethodsMethods
PropertyMột thuộc tính có tên và kiểu duy nhất trên một A3DObject.
PropertyCollectionBộ sưu tập có thể lặp lại của Property đối tượng được gắn vào một A3DObject.

Xem thêm

 Tiếng Việt