Class MVert
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.MVert
-
public class MVert extends CFacade
Generated facet for DNA struct type 'MVert'.Class Documentation
Java .Blend
A single vertex with coordinates and normal vector.Blender Source Code
Mesh
Vertices.Typically accessed from
Mesh.getMvert()
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD__bweight
Field descriptor (offset) for struct member 'bweight'.static long[]
__DNA__FIELD__co
Field descriptor (offset) for struct member 'co'.static long[]
__DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.static long[]
__DNA__FIELD__no
Field descriptor (offset) for struct member 'no'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct MVert.-
Fields inherited from class org.cakelab.blender.nio.CFacade
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
-
-
Constructor Summary
Constructors Modifier Constructor Description MVert(long __address, Block __block, BlockTable __blockTable)
protected
MVert(MVert that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<MVert>
__io__addressof()
Instantiates a pointer on this instance.byte
getBweight()
Get method for struct member 'bweight'.CArrayFacade<java.lang.Float>
getCo()
Get method for struct member 'co'.byte
getFlag()
Get method for struct member 'flag'.CArrayFacade<java.lang.Short>
getNo()
Get method for struct member 'no'.void
setBweight(byte bweight)
Set method for struct member 'bweight'.void
setCo(CArrayFacade<java.lang.Float> co)
Set method for struct member 'co'.void
setFlag(byte flag)
Set method for struct member 'flag'.void
setNo(CArrayFacade<java.lang.Short> no)
Set method for struct member 'no'.-
Methods inherited from class org.cakelab.blender.nio.CFacade
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof, equals, hashCode
-
-
-
-
Field Detail
-
__DNA__SDNA_INDEX
public static final int __DNA__SDNA_INDEX
This is the sdna index of the struct MVert.It is required when allocating a new block to store data for MVert.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__co
public static final long[] __DNA__FIELD__co
Field descriptor (offset) for struct member 'co'.Field Documentation
Java .Blend
XYZ coordinates.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MVert mvert = ...; CPointer<Object> p = mvert.__dna__addressof(MVert.__DNA__FIELD__co); CPointer<CArrayFacade<Float>> p_co = p.cast(new Class[]{CArrayFacade.class, Float.class});
Metadata
- Field: 'co'
- Signature: 'float[3]'
- Actual Size (32bit/64bit): 12/12
-
__DNA__FIELD__no
public static final long[] __DNA__FIELD__no
Field descriptor (offset) for struct member 'no'.Field Documentation
Java .Blend
Normal vector.Blender Source Code
Cache the normal, can always be recalculated from surrounding faces. See #CD_CUSTOMLOOPNORMAL for custom normals.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MVert mvert = ...; CPointer<Object> p = mvert.__dna__addressof(MVert.__DNA__FIELD__no); CPointer<CArrayFacade<Short>> p_no = p.cast(new Class[]{CArrayFacade.class, Short.class});
Metadata
- Field: 'no'
- Signature: 'short[3]'
- Actual Size (32bit/64bit): 6/6
-
__DNA__FIELD__flag
public static final long[] __DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.Field Documentation
Java .Blend
Values
SELECT = 1 ME_VERT_TMP_TAG = (1 << 2), ME_HIDE = (1 << 4), ME_VERT_MERGED = (1 << 6), ME_VERT_PBVH_UPDATE = (1 << 7),
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MVert mvert = ...; CPointer<Object> p = mvert.__dna__addressof(MVert.__DNA__FIELD__flag); CPointer<Byte> p_flag = p.cast(new Class[]{Byte.class});
Metadata
- Field: 'flag'
- Signature: 'char'
- Actual Size (32bit/64bit): 1/1
-
__DNA__FIELD__bweight
public static final long[] __DNA__FIELD__bweight
Field descriptor (offset) for struct member 'bweight'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MVert mvert = ...; CPointer<Object> p = mvert.__dna__addressof(MVert.__DNA__FIELD__bweight); CPointer<Byte> p_bweight = p.cast(new Class[]{Byte.class});
Metadata
- Field: 'bweight'
- Signature: 'char'
- Actual Size (32bit/64bit): 1/1
-
-
Constructor Detail
-
MVert
public MVert(long __address, Block __block, BlockTable __blockTable)
-
MVert
protected MVert(MVert that)
-
-
Method Detail
-
getCo
public CArrayFacade<java.lang.Float> getCo() throws java.io.IOException
Get method for struct member 'co'.Field Documentation
Java .Blend
XYZ coordinates.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__co
-
setCo
public void setCo(CArrayFacade<java.lang.Float> co) throws java.io.IOException
Set method for struct member 'co'.Field Documentation
Java .Blend
XYZ coordinates.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__co
-
getNo
public CArrayFacade<java.lang.Short> getNo() throws java.io.IOException
Get method for struct member 'no'.Field Documentation
Java .Blend
Normal vector.Blender Source Code
Cache the normal, can always be recalculated from surrounding faces. See #CD_CUSTOMLOOPNORMAL for custom normals.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__no
-
setNo
public void setNo(CArrayFacade<java.lang.Short> no) throws java.io.IOException
Set method for struct member 'no'.Field Documentation
Java .Blend
Normal vector.Blender Source Code
Cache the normal, can always be recalculated from surrounding faces. See #CD_CUSTOMLOOPNORMAL for custom normals.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__no
-
getFlag
public byte getFlag() throws java.io.IOException
Get method for struct member 'flag'.Field Documentation
Java .Blend
Values
SELECT = 1 ME_VERT_TMP_TAG = (1 << 2), ME_HIDE = (1 << 4), ME_VERT_MERGED = (1 << 6), ME_VERT_PBVH_UPDATE = (1 << 7),
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__flag
-
setFlag
public void setFlag(byte flag) throws java.io.IOException
Set method for struct member 'flag'.Field Documentation
Java .Blend
Values
SELECT = 1 ME_VERT_TMP_TAG = (1 << 2), ME_HIDE = (1 << 4), ME_VERT_MERGED = (1 << 6), ME_VERT_PBVH_UPDATE = (1 << 7),
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__flag
-
getBweight
public byte getBweight() throws java.io.IOException
Get method for struct member 'bweight'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__bweight
-
setBweight
public void setBweight(byte bweight) throws java.io.IOException
Set method for struct member 'bweight'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__bweight
-
-