Package com.agisoft.metashape
Class Model
java.lang.Object
com.agisoft.metashape.Model
Polygonal model.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic enumstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long[]cArrayUnwrap(Model[] arrayWrapper) static Model[]cArrayWrap(long[] cArray, boolean cMemoryOwn) voiddelete()protected voidfinalize()Active texture of a given type, may be null.getChunk()Chunk container, may be null.static longintFace count.intgetKey()Model identifier.getLabel()Model label.getMesh()Model mesh, may be null.getMeta()Model meta data.getPath()Path to model file.List of textures in the model.intVertex count;booleanhasUV()Returns true if model has UV coordinates.booleanReturns true if model has vertex colors.booleanReturns true if model has confidence values.Returns ray intersection with the model surface.renderPreview(long width, long height, Matrix4x4d transform, Progress progress) Generate model preview image.voidModel label.voidsetMesh(Model.Mesh mesh) Model mesh, may be null.voidModel meta data.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
Model
public Model(long cPtr, boolean cMemoryOwn) -
Model
public Model() -
Model
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize() -
delete
public void delete() -
cArrayUnwrap
-
cArrayWrap
-
getKey
public int getKey()Model identifier. -
getChunk
Chunk container, may be null. -
setLabel
Model label. -
getLabel
Model label. -
getTextures
List of textures in the model. -
getActiveTexture
Active texture of a given type, may be null. -
setMesh
Model mesh, may be null. -
getMesh
Model mesh, may be null. -
getPath
Path to model file. -
setMeta
Model meta data. -
getMeta
Model meta data. -
getFaceCount
public int getFaceCount()Face count. -
getVertexCount
public int getVertexCount()Vertex count; -
hasUV
public boolean hasUV()Returns true if model has UV coordinates. -
hasVertexColors
public boolean hasVertexColors()Returns true if model has vertex colors. -
hasVertexConfidence
public boolean hasVertexConfidence()Returns true if model has confidence values. -
pickPoint
Returns ray intersection with the model surface.- Parameters:
origin- Ray origin.target- Point on the ray.- Returns:
- Coordinates of the intersection point, may be null.
-
renderPreview
Generate model preview image.- Parameters:
width- Preview image width.height- Preview image height.transform- 4x4 viewpoint transformation matrix.- Returns:
- Preview image.
-