TriMesh

Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.SceneObject, com.aspose.threed.Entity

All Implemented Interfaces: java.lang.Iterable

public class TriMesh extends Entity implements Iterable<Vertex>

एक TriMesh में कच्चा डेटा होता है जिसे GPU सीधे उपयोग कर सकता है। यह क्लास एक उपयोगिता है जो केवल प्रति-शिखर डेटा वाले मेष को बनाने में मदद करती है। Example: निम्नलिखित कोड दिखाता है कि कैसे कस्टम मेमोरी लेआउट के साथ एक TriMesh बनाया जाए, और इसे फ़ाइल में निर्यात किया जाए।

//Define a vertex declaration as {FVector3 Position; FVector3 Normal; FVector2 UV}
              VertexDeclaration vd = new VertexDeclaration();
              vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.POSITION);
              vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.NORMAL);
              vd.addField(VertexFieldDataType.F_VECTOR2, VertexFieldSemantic.UV);
              //convert a mesh to tri-mesh using specified memory layout
              var mesh = (new Sphere()).toMesh();
              var triMesh = TriMesh.fromMesh(vd, mesh);
              //save it to a stream, 115 vertices * 32bytes per vertex
              try(var s = new FileOutputStream("output.bin")) {
                  triMesh.writeVerticesTo(s);
                  //save indices as ushort to stream, 504 indices * 2 bytes per index
                  triMesh.write16bIndicesTo(s);
              }

कंस्ट्रक्टर

कंस्ट्रक्टरविवरण
TriMesh(String name, VertexDeclaration declaration)एक TriMesh का उदाहरण आरंभ करें

विधियाँ

विधिविवरण
addTriangle(int a, int b, int c)एक नया त्रिभुज जोड़ें
beginVertex()वर्टेक्स जोड़ना शुरू करें
copyFrom(TriMesh input, VertexDeclaration vd)इनपुट से नया वर्टेक्स लेआउट के साथ TriMesh कॉपी करें
endVertex()वर्टेक्स जोड़ना समाप्त करें
equals(Object arg0)
findProperty(String propertyName)प्रॉपर्टी को खोजता है।
fromMesh(Mesh mesh)दिए गए मेष ऑब्जेक्ट से एक TriMesh बनाएं, वर्टेक्स घोषणा इनपुट मेष की संरचना पर आधारित है।
fromMesh(Mesh mesh, boolean useFloat)दिए गए मेष ऑब्जेक्ट से एक TriMesh बनाएं, वर्टेक्स घोषणा इनपुट मेष की संरचना पर आधारित है।
fromMesh(VertexDeclaration declaration, Mesh mesh)दिए गए मेष ऑब्जेक्ट से दिए गए वर्टेक्स लेआउट के साथ एक TriMesh बनाएं।
fromRawData(VertexDeclaration vd, byte[] vertices, int[] indices, boolean generateVertexMapping)कच्चे डेटा से TriMesh बनाएं
getBoundingBox()वर्तमान एंटिटी का बाउंडिंग बॉक्स उसके ऑब्जेक्ट स्पेस कॉर्डिनेट सिस्टम में प्राप्त करता है।
getCapacity()पूर्व-आवंटित वर्टेक्स की क्षमता।
getClass()
getEntityRendererKey()रेंडरर में पंजीकृत एंटिटी रेंडरर की कुंजी प्राप्त करता है
getExcluded()निर्यात के दौरान इस एंटिटी को बाहर रखने के बारे में प्राप्त करता है।
getIndicesCount()इस TriMesh में सूचकांकों की संख्या।
getIntIndices()सूचकांकों को 32-बिट पूर्णांक एरे में बदलें
getName()नाम प्राप्त करता है।
getParentNode()पहला पैरेंट नोड प्राप्त करता है, यदि पहला पैरेंट नोड सेट किया गया है, तो यह एंटिटी अन्य पैरेंट नोड्स से अलग हो जाएगी।
getParentNodes()सभी पैरेंट नोड्स प्राप्त करता है, एक एंटिटी जियोमेट्री इंस्टेंसिंग के लिए कई पैरेंट नोड्स से जुड़ी हो सकती है
getProperties()सभी प्रॉपर्टीज़ का संग्रह प्राप्त करता है।
getProperty(String property)निर्दिष्ट प्रॉपर्टी का मान प्राप्त करें
getScene()उस सीन को प्राप्त करता है जिससे यह ऑब्जेक्ट संबंधित है
getShortIndices()सूचकांकों को 16-बिट पूर्णांक एरे में बदलें
getUnmergedVerticesCount()उस अनमर्ज्ड वर्टेक्स की संख्या जो beginVertex और endVertex द्वारा पास किए गए हैं।
getVertexDeclaration()TriMesh का वर्टेक्स लेआउट।
getVerticesCount()इस TriMesh में वर्टेक्स की संख्या।
getVerticesSizeInBytes()सभी वर्टेक्स का कुल आकार बाइट्स में
hashCode()
indicesToArray(int[][] result)सूचकांकों को 32-बिट पूर्णांक एरे में बदलें
indicesToArray(short[][] result)सूचकांकों को 16-बिट पूर्णांक एरे में बदलें
iterator()Vertex को क्रमबद्ध करने के लिए इनेमरेटर प्राप्त करें
loadVerticesFromBytes(byte[] verticesInBytes)बाइट्स से वर्टेक्स लोड करें, बाइट्स की लंबाई वर्टेक्स आकार का पूर्णांक गुणज होना चाहिए।
notify()
notifyAll()
readDouble(int idx, VertexField field)डबल फ़ील्ड पढ़ें
readFVector2(int idx, VertexField field)vector2 फ़ील्ड पढ़ें
readFVector3(int idx, VertexField field)vector3 फ़ील्ड पढ़ें
readFVector4(int idx, VertexField field)vector4 फ़ील्ड पढ़ें
readFloat(int idx, VertexField field)float फ़ील्ड पढ़ें
readVector2(int idx, VertexField field)vector2 फ़ील्ड पढ़ें
readVector3(int idx, VertexField field)vector3 फ़ील्ड पढ़ें
readVector4(int idx, VertexField field)vector4 फ़ील्ड पढ़ें
removeProperty(Property property)डायनामिक प्रॉपर्टी को हटाता है।
removeProperty(String property)नाम द्वारा पहचानी गई निर्दिष्ट प्रॉपर्टी को हटाएँ
setExcluded(boolean value)निर्यात के दौरान इस एंटिटी को बाहर रखने के बारे में सेट करता है।
setName(String value)नाम सेट करता है।
setParentNode(Node value)पहला पैरेंट नोड सेट करता है, यदि पहला पैरेंट नोड सेट किया गया है, तो यह एंटिटी अन्य पैरेंट नोड्स से अलग हो जाएगी।
setProperty(String property, Object value)निर्दिष्ट प्रॉपर्टी का मान सेट करता है
toString()प्राप्त करता है TriMesh का स्ट्रिंग प्रतिनिधित्व
verticesToArray()वर्टिसेज डेटा को बाइट एरे में परिवर्तित करें
wait()
wait(long arg0)
wait(long arg0, int arg1)
write16bIndicesTo(Stream stream)इंडेक्स डेटा को 16bit पूर्णांक के रूप में स्ट्रीम में लिखें Example:
write16bIndicesTo(OutputStream stream)इंडेक्स डेटा को 16bit पूर्णांक के रूप में स्ट्रीम में लिखें
write32bIndicesTo(Stream stream)इंडेक्स डेटा को 32bit पूर्णांक के रूप में स्ट्रीम में लिखें Example:
write32bIndicesTo(OutputStream stream)इंडेक्स डेटा को 32bit पूर्णांक के रूप में स्ट्रीम में लिखें
writeVerticesTo(Stream stream)निर्दिष्ट स्ट्रीम में वर्टिसेज डेटा लिखें
writeVerticesTo(OutputStream stream)निर्दिष्ट स्ट्रीम में वर्टिसेज डेटा लिखें

TriMesh(String name, VertexDeclaration declaration)

public TriMesh(String name, VertexDeclaration declaration)

एक TriMesh का उदाहरण आरंभ करें

Parameters:

पैरामीटरप्रकारविवरण
नामjava.lang.Stringइस TriMesh का नाम
declarationVertexDeclarationवर्टेक्स की घोषणा

addTriangle(int a, int b, int c)

public void addTriangle(int a, int b, int c)

एक नया त्रिभुज जोड़ें

Parameters:

पैरामीटरप्रकारविवरण
aintपहले वर्टेक्स का इंडेक्स
bintदूसरे वर्टेक्स का इंडेक्स
cintतीसरे वर्टेक्स का इंडेक्स

beginVertex()

public Vertex beginVertex()

वर्टेक्स जोड़ना शुरू करें

Returns: Vertex - The reference of internal vertex object in type Vertex

copyFrom(TriMesh input, VertexDeclaration vd)

public static TriMesh copyFrom(TriMesh input, VertexDeclaration vd)

इनपुट से नया वर्टेक्स लेआउट के साथ TriMesh कॉपी करें

Parameters:

पैरामीटरप्रकारविवरण
inputTriMeshकॉपी करने के लिए इनपुट TriMesh
vdVertexDeclarationआउटपुट TriMesh की नई वर्टेक्स घोषणा

Returns: TriMesh - A new TriMesh instance with new vertex declaration. Example:

//Define a vertex declaration as {FVector3 Position; FVector3 Normal; FVector2 UV}
  VertexDeclaration vd = new VertexDeclaration();
  vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.POSITION);
  vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.NORMAL);
  vd.addField(VertexFieldDataType.F_VECTOR2, VertexFieldSemantic.UV);
  //convert a mesh to TriMesh, the layout is automatically inferred from input mesh
  var oldTriMesh = TriMesh.fromMesh((new Sphere()).toMesh());
  //now create a new TriMesh from old TriMesh, using explicit memory layout defined by vd
  var newTriMesh = TriMesh.copyFrom(oldTriMesh, vd);

endVertex()

public int endVertex()

वर्टेक्स जोड़ना समाप्त करें

Returns: int

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

पैरामीटरप्रकारविवरण
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

प्रॉपर्टी को खोजता है। यह एक डायनामिक प्रॉपर्टी (CreateDynamicProperty/SetProperty द्वारा बनाई गई) या नेटिव प्रॉपर्टी (नाम द्वारा पहचानी गई) हो सकती है।

Parameters:

पैरामीटरप्रकारविवरण
propertyNamejava.lang.Stringप्रॉपर्टी नाम।

Returns: Property - The property.

fromMesh(Mesh mesh)

public static TriMesh fromMesh(Mesh mesh)

दिए गए मेष ऑब्जेक्ट से एक TriMesh बनाएं, वर्टेक्स घोषणा इनपुट मेष की संरचना पर आधारित है।

Parameters:

पैरामीटरप्रकारविवरण
meshMesh

Returns: TriMesh - The TriMesh generated from given Mesh Example: The following code shows how to create a TriMesh with custom memory layout, and export it to file.

//Define a vertex declaration as {FVector3 Position; FVector3 Normal; FVector2 UV}
              VertexDeclaration vd = new VertexDeclaration();
              vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.POSITION);
              vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.NORMAL);
              vd.addField(VertexFieldDataType.F_VECTOR2, VertexFieldSemantic.UV);
              //convert a mesh to tri-mesh using specified memory layout
              var mesh = (new Sphere()).toMesh();
              var triMesh = TriMesh.fromMesh(vd, mesh);
              //save it to a stream, 115 vertices * 32bytes per vertex
              try(var s = new FileOutputStream("output.bin")) {
                  triMesh.writeVerticesTo(s);
                  //save indices as ushort to stream, 504 indices * 2 bytes per index
                  triMesh.write16bIndicesTo(s);
              }

fromMesh(Mesh mesh, boolean useFloat)

public static TriMesh fromMesh(Mesh mesh, boolean useFloat)

दिए गए मेष ऑब्जेक्ट से एक TriMesh बनाएं, वर्टेक्स घोषणा इनपुट मेष की संरचना पर आधारित है।

Parameters:

पैरामीटरप्रकारविवरण
meshMesh
useFloatbooleanप्रत्येक वर्टेक्स तत्व घटक के लिए double प्रकार के बजाय float प्रकार का उपयोग करें।

Returns: TriMesh - The TriMesh generated from given Mesh Example: The following code shows how to create a TriMesh with custom memory layout, and export it to file.

//Define a vertex declaration as {FVector3 Position; FVector3 Normal; FVector2 UV}
              VertexDeclaration vd = new VertexDeclaration();
              vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.POSITION);
              vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.NORMAL);
              vd.addField(VertexFieldDataType.F_VECTOR2, VertexFieldSemantic.UV);
              //convert a mesh to tri-mesh using specified memory layout
              var mesh = (new Sphere()).toMesh();
              var triMesh = TriMesh.fromMesh(vd, mesh);
              //save it to a stream, 115 vertices * 32bytes per vertex
              try(var s = new FileOutputStream("output.bin")) {
                  triMesh.writeVerticesTo(s);
                  //save indices as ushort to stream, 504 indices * 2 bytes per index
                  triMesh.write16bIndicesTo(s);
              }

fromMesh(VertexDeclaration declaration, Mesh mesh)

public static TriMesh fromMesh(VertexDeclaration declaration, Mesh mesh)

दिए गए मेष ऑब्जेक्ट से दिए गए वर्टेक्स लेआउट के साथ एक TriMesh बनाएं।

Parameters:

पैरामीटरप्रकारविवरण
declarationVertexDeclarationवर्टेक्स का प्रकार परिभाषा, या मेमोरी लेआउट
meshMeshस्रोत मेष

Returns: TriMesh - Instance of TriMesh converted from input mesh with specified vertex’s memory layout Example: The following code shows how to create a TriMesh with custom memory layout, and export it to file.

//Define a vertex declaration as {FVector3 Position; FVector3 Normal; FVector2 UV}
              VertexDeclaration vd = new VertexDeclaration();
              vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.POSITION);
              vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.NORMAL);
              vd.addField(VertexFieldDataType.F_VECTOR2, VertexFieldSemantic.UV);
              //convert a mesh to tri-mesh using specified memory layout
              var mesh = (new Sphere()).toMesh();
              var triMesh = TriMesh.fromMesh(vd, mesh);
              //save it to a stream, 115 vertices * 32bytes per vertex
              try(var s = new FileOutputStream("output.bin")) {
                  triMesh.writeVerticesTo(s);
                  //save indices as ushort to stream, 504 indices * 2 bytes per index
                  triMesh.write16bIndicesTo(s);
              }

fromRawData(VertexDeclaration vd, byte[] vertices, int[] indices, boolean generateVertexMapping)

public static TriMesh fromRawData(VertexDeclaration vd, byte[] vertices, int[] indices, boolean generateVertexMapping)

कच्चे डेटा से TriMesh बनाएं

Parameters:

पैरामीटरप्रकारविवरण
vdVertexDeclarationवर्टेक्स घोषणा, कम से कम एक फ़ील्ड होना चाहिए।
वर्टिसेजbyte[]इनपुट वर्टेक्स डेटा, वर्टेक्स की न्यूनतम लंबाई वर्टेक्स घोषणा के आकार के बराबर या उससे अधिक होनी चाहिए
सूचकांकint[]त्रिभुज सूचकांक
generateVertexMappingbooleanप्रत्येक वर्टेक्स के लिए Vertex उत्पन्न करें, जो केवल सीरियलाइज़ेशन/डिसीरियलाइज़ेशन के लिए आवश्यक नहीं है।

Returns: TriMesh - The TriMesh instance that encapsulated the input byte array. Remarks: The returned TriMesh will not copy the input byte array for performance, external changes on the array will be reflected to this instance. Example: The following code shows how to construct a TriMesh from raw bytes, this is useful when build your own 3D format

var indices = new int[] { 0,  1,  2 };
  var vertices = new byte[]{
      0, 0, 0, 191,
      0, 0, 0, 0,
      0, 0, 0, 191,
      0, 0, 0, 191,
      0, 0, 0, 0,
      0, 0, 0, 63,
      0, 0, 0, 63,
      0, 0, 0, 0The string representation,
      0, 0, 0, 63
  };
  VertexDeclaration vd = new VertexDeclaration();
  vd.AddField(VertexFieldDataType.FVector3, VertexFieldSemantic.Position);
  var triMesh = TriMesh.FromRawData(vd, vertices, indices, true);

getBoundingBox()

public BoundingBox getBoundingBox()

वर्तमान एंटिटी का बाउंडिंग बॉक्स उसके ऑब्जेक्ट स्पेस कॉर्डिनेट सिस्टम में प्राप्त करता है।

Returns: BoundingBox - the bounding box of current entity in its object space coordinate system. Example: The following code shows how to calculate the bounding box of a shape

Entity entity = new Sphere();
     entity.setRadius(10);
     var bbox = entity.getBoundingBox();
     System.out.printf("The bounding box of the entity is %s ~ %s", bbox.getMinimum(), bbox.getMaximum());

getCapacity()

public int getCapacity()

पूर्व-आवंटित वर्टेक्स की क्षमता।

Returns: int - पूर्व-आवंटित वर्टेक्स की क्षमता।

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getEntityRendererKey()

public EntityRendererKey getEntityRendererKey()

रेंडरर में पंजीकृत एंटिटी रेंडरर की कुंजी प्राप्त करता है

Returns: EntityRendererKey - the key of the entity renderer registered in the renderer

getExcluded()

public boolean getExcluded()

निर्यात के दौरान इस एंटिटी को बाहर रखने के बारे में प्राप्त करता है।

Returns: बूलियन - निर्यात के दौरान इस एंटिटी को बाहर रखने के बारे में।

getIndicesCount()

public int getIndicesCount()

इस TriMesh में सूचकांकों की संख्या।

Returns: int - इस TriMesh में सूचकांकों की संख्या

getIntIndices()

public int[] getIntIndices()

सूचकांकों को 32-बिट पूर्णांक एरे में बदलें

Returns: int[]

getName()

public String getName()

नाम प्राप्त करता है।

Returns: java.lang.String - नाम।

getParentNode()

public Node getParentNode()

पहला पैरेंट नोड प्राप्त करता है, यदि पहला पैरेंट नोड सेट किया गया है, तो यह एंटिटी अन्य पैरेंट नोड्स से अलग हो जाएगी।

Returns: Node - the first parent node, if set the first parent node, this entity will be detached from other parent nodes.

getParentNodes()

public ArrayList<Node> getParentNodes()

सभी पैरेंट नोड्स प्राप्त करता है, एक एंटिटी जियोमेट्री इंस्टेंसिंग के लिए कई पैरेंट नोड्स से जुड़ी हो सकती है

Returns: java.util.ArrayList<com.aspose.threed.Node> - सभी पैरेंट नोड्स, एक इकाई को ज्यामिति इंस्टेंसिंग के लिए कई पैरेंट नोड्स से जोड़ा जा सकता है

getProperties()

public PropertyCollection getProperties()

सभी प्रॉपर्टीज़ का संग्रह प्राप्त करता है।

Returns: PropertyCollection - the collection of all properties.

getProperty(String property)

public Object getProperty(String property)

निर्दिष्ट प्रॉपर्टी का मान प्राप्त करें

Parameters:

पैरामीटरप्रकारविवरण
प्रॉपर्टीjava.lang.Stringप्रॉपर्टी नाम

Returns: java.lang.Object - मिली हुई प्रॉपर्टी का मान

getScene()

public Scene getScene()

उस सीन को प्राप्त करता है जिससे यह ऑब्जेक्ट संबंधित है

Returns: Scene - the scene that this object belongs to

getShortIndices()

public short[] getShortIndices()

सूचकांकों को 16-बिट पूर्णांक एरे में बदलें

Returns: short[]

getUnmergedVerticesCount()

public int getUnmergedVerticesCount()

उस अनमर्ज्ड वर्टेक्स की संख्या जो beginVertex और endVertex द्वारा पास किए गए हैं।

Returns: int - beginVertex और endVertex द्वारा पास किए गए अनमर्ज्ड वर्टेक्स की संख्या।

getVertexDeclaration()

public VertexDeclaration getVertexDeclaration()

TriMesh का वर्टेक्स लेआउट।

Returns: VertexDeclaration - The vertex layout of the TriMesh.

getVerticesCount()

public int getVerticesCount()

इस TriMesh में वर्टेक्स की संख्या।

Returns: int - इस TriMesh में वर्टेक्स की संख्या

getVerticesSizeInBytes()

public int getVerticesSizeInBytes()

सभी वर्टेक्स का कुल आकार बाइट्स में

Returns: int - सभी वर्टेक्स का कुल आकार बाइट्स में

hashCode()

public native int hashCode()

Returns: int

indicesToArray(int[][] result)

public void indicesToArray(int[][] result)

सूचकांकों को 32-बिट पूर्णांक एरे में बदलें

Parameters:

पैरामीटरप्रकारविवरण
परिणामint[][]

indicesToArray(short[][] result)

public void indicesToArray(short[][] result)

सूचकांकों को 16-बिट पूर्णांक एरे में बदलें

Parameters:

पैरामीटरप्रकारविवरण
परिणामshort[][]

iterator()

public Iterator<Vertex> iterator()

Vertex को क्रमबद्ध करने के लिए इनेमरेटर प्राप्त करें

Returns: java.util.Iterator<com.aspose.threed.Vertex>

loadVerticesFromBytes(byte[] verticesInBytes)

public void loadVerticesFromBytes(byte[] verticesInBytes)

बाइट्स से वर्टेक्स लोड करें, बाइट्स की लंबाई वर्टेक्स आकार का पूर्णांक गुणज होनी चाहिए। उदाहरण: निम्नलिखित कोड दिखाता है कि कैसे एक खाली TriMesh बनाया जाए और मैन्युअल रूप से कच्चे बाइट्स से वर्टेक्स लोड किए जाएँ।

var indices = new int[] { 0,  1,  2 };
  var vertices = new byte[]{
      0, 0, 0, 191,
      0, 0, 0, 0,
      0, 0, 0, 191,
      0, 0, 0, 191,
      0, 0, 0, 0,
      0, 0, 0, 63,
      0, 0, 0, 63,
      0, 0, 0, 0,
      0, 0, 0, 63
  };
  VertexDeclaration vd = new VertexDeclaration();
  vd.AddField(VertexFieldDataType.FVector3, VertexFieldSemantic.Position);
  //create an empty TriMesh with specified vertex declaration
  var triMesh = new TriMesh("", vd);
  //load vertices directly from bytes
  triMesh.LoadVerticesFromBytes(vertices);
  triMesh.AddTriangle(0, 1, 2);
int[] indices = new int[] { 0,  1,  2 };
  byte[] vertices = new byte[]{
      0, 0, 0, 191,
      0, 0, 0, 0,
      0, 0, 0, 191,
      0, 0, 0, 191,
      0, 0, 0, 0,
      0, 0, 0, 63,
      0, 0, 0, 63,
      0, 0, 0, 0,
      0, 0, 0, 63
  };
  VertexDeclaration vd = new VertexDeclaration();
  vd.addField(VertexFieldDataType.F_VECTOR3, VertexFieldSemantic.POSITION);
  //create an empty TriMesh with specified vertex declaration
  var triMesh = new TriMesh("", vd);
  //load vertices directly from bytes
  triMesh.loadVerticesFromBytes(vertices);
  triMesh.addTriangle(0, 1, 2);

Parameters:

पैरामीटरप्रकारविवरण
verticesInBytesbyte[]

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

readDouble(int idx, VertexField field)

public double readDouble(int idx, VertexField field)

डबल फ़ील्ड पढ़ें

Parameters:

पैरामीटरप्रकारविवरण
idxintपढ़ने के लिए वर्टेक्स का सूचकांक
fieldVertexFieldफ़्लोट/डबल संगत डेटा प्रकार वाला फ़ील्ड

Returns: double - निर्दिष्ट वर्टेक्स के फ़ील्ड का डबल मान

readFVector2(int idx, VertexField field)

public FVector2 readFVector2(int idx, VertexField field)

vector2 फ़ील्ड पढ़ें

Parameters:

पैरामीटरप्रकारविवरण
idxintपढ़ने के लिए वर्टेक्स का सूचकांक
fieldVertexFieldVector2/FVector2 डेटा प्रकार वाला फ़ील्ड

Returns: FVector2 - FVector2 of specified vertex’s field

readFVector3(int idx, VertexField field)

public FVector3 readFVector3(int idx, VertexField field)

vector3 फ़ील्ड पढ़ें

Parameters:

पैरामीटरप्रकारविवरण
idxintपढ़ने के लिए वर्टेक्स का सूचकांक
fieldVertexFieldVector3/FVector3 डेटा प्रकार वाला फ़ील्ड

Returns: FVector3

readFVector4(int idx, VertexField field)

public FVector4 readFVector4(int idx, VertexField field)

vector4 फ़ील्ड पढ़ें

Parameters:

पैरामीटरप्रकारविवरण
idxintपढ़ने के लिए वर्टेक्स का सूचकांक
fieldVertexFieldVector4/FVector4 डेटा प्रकार वाला फ़ील्ड

Returns: FVector4

readFloat(int idx, VertexField field)

public float readFloat(int idx, VertexField field)

float फ़ील्ड पढ़ें

Parameters:

पैरामीटरप्रकारविवरण
idxintपढ़ने के लिए वर्टेक्स का सूचकांक
fieldVertexFieldफ़्लोट/डबल संगत डेटा प्रकार वाला फ़ील्ड

Returns: float - निर्दिष्ट वर्टेक्स के फ़ील्ड का फ़्लोट मान

readVector2(int idx, VertexField field)

public Vector2 readVector2(int idx, VertexField field)

vector2 फ़ील्ड पढ़ें

Parameters:

पैरामीटरप्रकारविवरण
idxintपढ़ने के लिए वर्टेक्स का सूचकांक
fieldVertexFieldVector2/FVector2 डेटा प्रकार वाला फ़ील्ड

Returns: Vector2 - Vector2 of specified vertex’s field

readVector3(int idx, VertexField field)

public Vector3 readVector3(int idx, VertexField field)

vector3 फ़ील्ड पढ़ें

Parameters:

पैरामीटरप्रकारविवरण
idxintपढ़ने के लिए वर्टेक्स का सूचकांक
fieldVertexFieldVector3/FVector3 डेटा प्रकार वाला फ़ील्ड

Returns: Vector3

readVector4(int idx, VertexField field)

public Vector4 readVector4(int idx, VertexField field)

vector4 फ़ील्ड पढ़ें

Parameters:

पैरामीटरप्रकारविवरण
idxintपढ़ने के लिए वर्टेक्स का सूचकांक
fieldVertexFieldVector4/FVector4 डेटा प्रकार वाला फ़ील्ड

Returns: Vector4

removeProperty(Property property)

public boolean removeProperty(Property property)

डायनामिक प्रॉपर्टी को हटाता है।

Parameters:

पैरामीटरप्रकारविवरण
propertyPropertyकौन सी प्रॉपर्टी हटानी है

Returns: boolean - यदि प्रॉपर्टी सफलतापूर्वक हटाई गई हो तो true

removeProperty(String property)

public boolean removeProperty(String property)

नाम द्वारा पहचानी गई निर्दिष्ट प्रॉपर्टी को हटाएँ

Parameters:

पैरामीटरप्रकारविवरण
प्रॉपर्टीjava.lang.Stringकौन सी प्रॉपर्टी हटानी है

Returns: boolean - यदि प्रॉपर्टी सफलतापूर्वक हटाई गई हो तो true

setExcluded(boolean value)

public void setExcluded(boolean value)

निर्यात के दौरान इस एंटिटी को बाहर रखने के बारे में सेट करता है।

Parameters:

पैरामीटरप्रकारविवरण
मानbooleanनया मान

setName(String value)

public void setName(String value)

नाम सेट करता है।

Parameters:

पैरामीटरप्रकारविवरण
मानjava.lang.Stringनया मान

setParentNode(Node value)

public void setParentNode(Node value)

पहला पैरेंट नोड सेट करता है, यदि पहला पैरेंट नोड सेट किया गया है, तो यह एंटिटी अन्य पैरेंट नोड्स से अलग हो जाएगी।

Parameters:

पैरामीटरप्रकारविवरण
valueNodeनया मान

setProperty(String property, Object value)

public void setProperty(String property, Object value)

निर्दिष्ट प्रॉपर्टी का मान सेट करता है

Parameters:

पैरामीटरप्रकारविवरण
प्रॉपर्टीjava.lang.Stringप्रॉपर्टी नाम
मानjava.lang.Objectप्रॉपर्टी का मान

toString()

public String toString()

प्राप्त करता है TriMesh का स्ट्रिंग प्रतिनिधित्व

Returns: java.lang.String - स्ट्रिंग प्रतिनिधित्व

verticesToArray()

public byte[] verticesToArray()

वर्टिसेज डेटा को बाइट एरे में परिवर्तित करें

Returns: byte[]

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

पैरामीटरप्रकारविवरण
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

पैरामीटरप्रकारविवरण
arg0long
arg1int

write16bIndicesTo(Stream stream)

public void write16bIndicesTo(Stream stream)

इंडेक्स डेटा को 16bit पूर्णांक के रूप में स्ट्रीम में लिखें Example:

//convert a mesh to TriMesh, the layout is automatically inferred from input mesh
      var mesh = (new Sphere()).toMesh();
      var triMesh = TriMesh.fromMesh(mesh);
      //save it to a stream, 115 vertices * 32bytes per vertex
      var stream = new ByteArrayOutputStream();
      try(var s = Stream.wrap(stream)) {
          triMesh.writeVerticesTo(s);
          //save indices as ushort to stream, 504 indices * 2 bytes per index
          triMesh.write16bIndicesTo(s);
      }

Parameters:

पैरामीटरप्रकारविवरण
streamStream

write16bIndicesTo(OutputStream stream)

public void write16bIndicesTo(OutputStream stream)

इंडेक्स डेटा को 16bit पूर्णांक के रूप में स्ट्रीम में लिखें

Parameters:

पैरामीटरप्रकारविवरण
स्ट्रीमjava.io.OutputStream
//convert a mesh to TriMesh, the layout is automatically inferred from input mesh    
     var mesh = (new Sphere()).toMesh();    
     var triMesh = TriMesh.fromMesh(mesh);    
     //save it to a stream, 115 vertices * 32bytes per vertex    
     var stream = new ByteArrayOutputStream();    
     triMesh.writeVerticesTo(stream);    
     //save indices as ushort to stream, 504 indices * 2 bytes per index    
     triMesh.write16bIndicesTo(stream);
``` |

### write32bIndicesTo(Stream stream) {#write32bIndicesTo-com.aspose.threed.Stream-}

public void write32bIndicesTo(Stream stream)



इंडेक्स डेटा को 32bit पूर्णांक के रूप में स्ट्रीम में लिखें **Example:**

//convert a mesh to TriMesh, the layout is automatically inferred from input mesh var mesh = (new Sphere()).toMesh(); var triMesh = TriMesh.fromMesh(mesh); //save it to a stream, 115 vertices * 32bytes per vertex var stream = new ByteArrayOutputStream(); try(var s = Stream.wrap(stream)) { triMesh.writeVerticesTo(s); //save indices as ushort to stream, 504 indices * 2 bytes per index triMesh.write32bIndicesTo(s); }


**Parameters:**
| पैरामीटर | प्रकार | विवरण |
| --- | --- | --- |
| stream | [Stream](../../com.aspose.threed/stream) |  |

### write32bIndicesTo(OutputStream stream) {#write32bIndicesTo-java.io.OutputStream-}

public void write32bIndicesTo(OutputStream stream)



इंडेक्स डेटा को 32bit पूर्णांक के रूप में स्ट्रीम में लिखें

**Parameters:**
| पैरामीटर | प्रकार | विवरण |
| --- | --- | --- |
|  | स्ट्रीम | java.io.OutputStream | **Example:** |

//convert a mesh to TriMesh, the layout is automatically inferred from input mesh
var mesh = (new Sphere()).toMesh();
var triMesh = TriMesh.fromMesh(mesh);
//save it to a stream, 115 vertices * 32bytes per vertex
var stream = new ByteArrayOutputStream();
triMesh.writeVerticesTo(stream);
//save indices as ushort to stream, 504 indices * 2 bytes per index
triMesh.write32bIndicesTo(stream);


### writeVerticesTo(Stream stream) {#writeVerticesTo-com.aspose.threed.Stream-}

public void writeVerticesTo(Stream stream)



निर्दिष्ट स्ट्रीम में वर्टिसेज डेटा लिखें

**Parameters:**
| पैरामीटर | प्रकार | विवरण |
| --- | --- | --- |
|  | stream | [Stream](../../com.aspose.threed/stream) | वर्टिस डेटा लिखे जाने वाली स्ट्रीम **Example:** |

//convert a mesh to TriMesh, the layout is automatically inferred from input mesh var mesh = (new Sphere()).toMesh(); var triMesh = TriMesh.fromMesh(mesh); //save it to a stream, 115 vertices * 32bytes per vertex var stream = new ByteArrayOutputStream(); try(var s = Stream.wrap(stream)) { triMesh.writeVerticesTo(s); //save indices as ushort to stream, 504 indices * 2 bytes per index triMesh.write16bIndicesTo(s); }


### writeVerticesTo(OutputStream stream) {#writeVerticesTo-java.io.OutputStream-}

public void writeVerticesTo(OutputStream stream)



निर्दिष्ट स्ट्रीम में वर्टिसेज डेटा लिखें

**Parameters:**
| पैरामीटर | प्रकार | विवरण |
| --- | --- | --- |
|  | स्ट्रीम | java.io.OutputStream | वर्टिस डेटा लिखे जाने वाली स्ट्रीम **Example:** |

//convert a mesh to TriMesh, the layout is automatically inferred from input mesh
var mesh = (new Sphere()).toMesh();
var triMesh = TriMesh.fromMesh(mesh);
//save it to a stream, 115 vertices * 32bytes per vertex
var stream = new ByteArrayOutputStream();
triMesh.writeVerticesTo(stream);
//save indices as ushort to stream, 504 indices * 2 bytes per index
triMesh.write16bIndicesTo(stream);