Light
Lớp Light — Không khả dụng
The Light lớp là không khả dụng trong phiên bản Java của Aspose.3D FOSS. Kho lưu trữ nguồn Java không chứa một Light.java cài đặt.
Dữ liệu chiếu sáng cảnh từ các tệp được nhập (như glTF hoặc FBX) được lưu trữ dưới dạng chung Entity đối tượng được gắn vào các nút. Bạn có thể truy cập các thực thể này thông qua API duyệt đồ thị cảnh tiêu chuẩn, nhưng không có một Light kiểu với các thuộc tính đặc thù cho ánh sáng.
Làm việc với Dữ liệu Ánh sáng Được Nhập
Khi một tệp chứa định nghĩa ánh sáng được nhập, dữ liệu ánh sáng được giữ lại dưới dạng một thực thể chung trên nút:
import com.aspose.threed.Scene;
import com.aspose.threed.Node;
Scene scene = Scene.fromFile("scene.gltf");
for (Node node : scene.getRootNode().getChildNodes()) {
if (node.getEntity() != null) {
System.out.println("Node '" + node.getName()
+ "': entity type=" + node.getEntity().getClass().getSimpleName());
}
}Xem thêm
| Name | Type | Access | Description |
|---|---|---|---|
color | Vector3 | Read | Gets the color. |
intensity | float | Read | Gets the intensity. |
falloffStart | float | Read | Gets the falloff start. |
falloffEnd | float | Read | Gets the falloff end. |
innerAngle | float | Read | Gets the inner angle. |
outerAngle | float | Read | Gets the outer angle. |
type | LightType | Read | Gets the type. |
enabled | boolean | Read | Gets the enabled. |
boundingBox | BoundingBox | Read | Gets the bounding box. |
parentNode | Node | Read | Gets the parent node. |
parentNodes | ArrayList<Node> | Read | Gets the parent nodes. |
excluded | boolean | Read | Gets the excluded. |
scene | Scene | Read | Gets the scene. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
| Signature | Description |
|---|---|
Light() | Calls Light on this Light instance. |
Light(name: String) | Calls Light(name) on this Light instance. |
getColor() → Vector3 | Returns the color. |
setColor(value: Vector3) | Sets the color value. |
getIntensity() → float | Returns the intensity. |
setIntensity(value: float) | Sets the intensity value. |
getFalloffStart() → float | Returns the falloff start. |
setFalloffStart(value: float) | Sets the falloff start value. |
getFalloffEnd() → float | Returns the falloff end. |
setFalloffEnd(value: float) | Sets the falloff end value. |
getInnerAngle() → float | Returns the inner angle. |
setInnerAngle(value: float) | Sets the inner angle value. |
getOuterAngle() → float | Returns the outer angle. |
setOuterAngle(value: float) | Sets the outer angle value. |
getType() → LightType | Returns the type. |
setType(value: LightType) | Sets the type value. |
getEnabled() → boolean | Returns the enabled. |
setEnabled(value: boolean) | Sets the enabled value. |
getBoundingBox() → BoundingBox | Returns the bounding box. |
Entity() | NURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its getOrder(), a set of weighted Geometry.getControlPoints() and a getKnotVectors() The w component in control point is used as control point’s weight, whatever it is a CurveDimension.TWO_DIMENSIONAL or CurveDimension.THREE_DIMENSIONAL |
getParentNode() → Node | Constructor of instance. |
setParentNode(value: Node) | The Boolean operator used in the operation to create the result mesh. |
getParentNodes() → ArrayList<Node> | Protected constructor to allow derived classes to set name. |
getExcluded() → boolean | The Boolean operator used in the operation to create the result mesh. |
setExcluded(value: boolean) | Sets the excluded value. |
SceneObject() | Boolean operator allows you to apply Boolean operation on two IMeshConvertible instances. |
getScene() → Scene | Constructor of BooleanOperator. |
A3DObject() | Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero. |
getName() → String | The segments of the curve. |
setName(name: String) | Constructs a CircleShape profile with specified radius. |
getProperties() → PropertyCollection | Initializes a new instance of Cylinder class. |
findProperty(name: String) → Property | Initializes a new instance of the Bone class. |
getProperty(name: String) → Object | Gets the transform matrix of the node in current pose. |
setProperty(name: String, value: Object) | Gets the width segments. |
removeProperty(name: String) → boolean | Gets flip coordinate system of control points/normal during importing/exporting. |