Light

Light Class — Kullanılamıyor

The Light sınıftır mevcut değil Aspose.3D FOSS’ın Java sürümünde. Java kaynak deposu içermiyor Light.java uygulama.

İçe aktarılan dosyalardan (örneğin glTF veya FBX) gelen sahne aydınlatma verileri genel olarak saklanır Entity düğümlere eklenmiş nesneler. Bu varlıklara standart sahne‑grafiği geçiş API’si üzerinden erişebilirsiniz, ancak özel bir Light aydınlatma‑özel özelliklere sahip bir tip.

İçe Aktarılan Aydınlatma Verileriyle Çalışma

Işık tanımları içeren bir dosya içe aktarıldığında, ışık verileri düğümde genel bir varlık olarak korunur:

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());
    }
}

Ayrıca Bakınız

NameTypeAccessDescription
colorVector3ReadGets the color.
intensityfloatReadGets the intensity.
falloffStartfloatReadGets the falloff start.
falloffEndfloatReadGets the falloff end.
innerAnglefloatReadGets the inner angle.
outerAnglefloatReadGets the outer angle.
typeLightTypeReadGets the type.
enabledbooleanReadGets the enabled.
boundingBoxBoundingBoxReadGets the bounding box.
parentNodeNodeReadGets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanReadGets the excluded.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.
SignatureDescription
Light()Calls Light on this Light instance.
Light(name: String)Calls Light(name) on this Light instance.
getColor()Vector3Returns the color.
setColor(value: Vector3)Sets the color value.
getIntensity()floatReturns the intensity.
setIntensity(value: float)Sets the intensity value.
getFalloffStart()floatReturns the falloff start.
setFalloffStart(value: float)Sets the falloff start value.
getFalloffEnd()floatReturns the falloff end.
setFalloffEnd(value: float)Sets the falloff end value.
getInnerAngle()floatReturns the inner angle.
setInnerAngle(value: float)Sets the inner angle value.
getOuterAngle()floatReturns the outer angle.
setOuterAngle(value: float)Sets the outer angle value.
getType()LightTypeReturns the type.
setType(value: LightType)Sets the type value.
getEnabled()booleanReturns the enabled.
setEnabled(value: boolean)Sets the enabled value.
getBoundingBox()BoundingBoxReturns 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()NodeConstructor 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()booleanThe 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()SceneConstructor of BooleanOperator.
A3DObject()Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
getName()StringThe segments of the curve.
setName(name: String)Constructs a CircleShape profile with specified radius.
getProperties()PropertyCollectionInitializes a new instance of Cylinder class.
findProperty(name: String)PropertyInitializes a new instance of the Bone class.
getProperty(name: String)ObjectGets the transform matrix of the node in current pose.
setProperty(name: String, value: Object)Gets the width segments.
removeProperty(name: String)booleanGets flip coordinate system of control points/normal during importing/exporting.
 Türkçe