Package com.agisoft.metashape
Class Model
java.lang.Object
com.agisoft.metashape.Model
public class Model extends Object
Polygonal model.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModel.Facestatic classModel.Meshstatic classModel.TexFacestatic classModel.Texturestatic classModel.TextureTypestatic classModel.TexVertexstatic classModel.Vertex -
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
-
Method Summary
Modifier and Type Method Description static long[]cArrayUnwrap(Model[] arrayWrapper)static Model[]cArrayWrap(long[] cArray, boolean cMemoryOwn)voiddelete()protected voidfinalize()Model.TexturegetActiveTexture(Model.TextureType type)Active texture of a given type.ChunkgetChunk()Chunk container.static longgetCPtr(Model obj)intgetKey()Model identifier.StringgetLabel()Model label.Model.MeshgetMesh()Model mesh.MetaDatagetMeta()Model meta data.StringgetPath()Path to model file.Model.Texture[]getTextures()List of textures in the model.Vector3dpickPoint(Vector3d origin, Vector3d target)Returns ray intersection with the model surface.ImagerenderPreview(long width, long height, Matrix4x4d transform, Progress progress)Generate model preview image.voidsetLabel(String label)Model label.voidsetMesh(Model.Mesh mesh)Model mesh.voidsetMeta(MetaData meta)Model 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. -
setLabel
Model label. -
getLabel
Model label. -
getTextures
List of textures in the model. -
getActiveTexture
Active texture of a given type. -
setMesh
Model mesh. -
getMesh
Model mesh. -
getPath
Path to model file. -
setMeta
Model meta data. -
getMeta
Model meta data. -
pickPoint
Returns ray intersection with the model surface.- Parameters:
origin- Ray origin.target- Point on the ray.- Returns:
- Coordinates of the intersection point or null.
-
renderPreview
Generate model preview image.- Parameters:
width- Preview image width.height- Preview image height.transform- 4x4 viewpoint transformation matrix.- Returns:
- Preview image.
-