Class PointCache
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.PointCache
-
public class PointCache extends CFacade
Generated facet for DNA struct type 'PointCache'.Class Documentation
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.static long[]
__DNA__FIELD___pad0
Field descriptor (offset) for struct member '_pad0'.static long[]
__DNA__FIELD___pad1
Field descriptor (offset) for struct member '_pad1'.static long[]
__DNA__FIELD__cached_frames
Field descriptor (offset) for struct member 'cached_frames'.static long[]
__DNA__FIELD__cached_frames_len
Field descriptor (offset) for struct member 'cached_frames_len'.static long[]
__DNA__FIELD__compression
Field descriptor (offset) for struct member 'compression'.static long[]
__DNA__FIELD__edit
Field descriptor (offset) for struct member 'edit'.static long[]
__DNA__FIELD__editframe
Field descriptor (offset) for struct member 'editframe'.static long[]
__DNA__FIELD__endframe
Field descriptor (offset) for struct member 'endframe'.static long[]
__DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.static long[]
__DNA__FIELD__index
Field descriptor (offset) for struct member 'index'.static long[]
__DNA__FIELD__info
Field descriptor (offset) for struct member 'info'.static long[]
__DNA__FIELD__last_exact
Field descriptor (offset) for struct member 'last_exact'.static long[]
__DNA__FIELD__last_valid
Field descriptor (offset) for struct member 'last_valid'.static long[]
__DNA__FIELD__mem_cache
Field descriptor (offset) for struct member 'mem_cache'.static long[]
__DNA__FIELD__name
Field descriptor (offset) for struct member 'name'.static long[]
__DNA__FIELD__next
Field descriptor (offset) for struct member 'next'.static long[]
__DNA__FIELD__path
Field descriptor (offset) for struct member 'path'.static long[]
__DNA__FIELD__prev
Field descriptor (offset) for struct member 'prev'.static long[]
__DNA__FIELD__prev_name
Field descriptor (offset) for struct member 'prev_name'.static long[]
__DNA__FIELD__simframe
Field descriptor (offset) for struct member 'simframe'.static long[]
__DNA__FIELD__startframe
Field descriptor (offset) for struct member 'startframe'.static long[]
__DNA__FIELD__step
Field descriptor (offset) for struct member 'step'.static long[]
__DNA__FIELD__totpoint
Field descriptor (offset) for struct member 'totpoint'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct PointCache.-
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 PointCache(long __address, Block __block, BlockTable __blockTable)
protected
PointCache(PointCache that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<PointCache>
__io__addressof()
Instantiates a pointer on this instance.CArrayFacade<java.lang.Byte>
get_pad()
Get method for struct member '_pad'.CArrayFacade<java.lang.Byte>
get_pad0()
Get method for struct member '_pad0'.CArrayFacade<java.lang.Byte>
get_pad1()
Get method for struct member '_pad1'.CPointer<java.lang.Byte>
getCached_frames()
Get method for struct member 'cached_frames'.int
getCached_frames_len()
Get method for struct member 'cached_frames_len'.short
getCompression()
Get method for struct member 'compression'.CPointer<java.lang.Object>
getEdit()
Get method for struct member 'edit'.int
getEditframe()
Get method for struct member 'editframe'.int
getEndframe()
Get method for struct member 'endframe'.int
getFlag()
Get method for struct member 'flag'.int
getIndex()
Get method for struct member 'index'.CArrayFacade<java.lang.Byte>
getInfo()
Get method for struct member 'info'.int
getLast_exact()
Get method for struct member 'last_exact'.int
getLast_valid()
Get method for struct member 'last_valid'.ListBase
getMem_cache()
Get method for struct member 'mem_cache'.CArrayFacade<java.lang.Byte>
getName()
Get method for struct member 'name'.CPointer<PointCache>
getNext()
Get method for struct member 'next'.CArrayFacade<java.lang.Byte>
getPath()
Get method for struct member 'path'.CPointer<PointCache>
getPrev()
Get method for struct member 'prev'.CArrayFacade<java.lang.Byte>
getPrev_name()
Get method for struct member 'prev_name'.int
getSimframe()
Get method for struct member 'simframe'.int
getStartframe()
Get method for struct member 'startframe'.int
getStep()
Get method for struct member 'step'.int
getTotpoint()
Get method for struct member 'totpoint'.void
set_pad(CArrayFacade<java.lang.Byte> _pad)
Set method for struct member '_pad'.void
set_pad0(CArrayFacade<java.lang.Byte> _pad0)
Set method for struct member '_pad0'.void
set_pad1(CArrayFacade<java.lang.Byte> _pad1)
Set method for struct member '_pad1'.void
setCached_frames(CPointer<java.lang.Byte> cached_frames)
Set method for struct member 'cached_frames'.void
setCached_frames_len(int cached_frames_len)
Set method for struct member 'cached_frames_len'.void
setCompression(short compression)
Set method for struct member 'compression'.void
setEdit(CPointer<java.lang.Object> edit)
Set method for struct member 'edit'.void
setEditframe(int editframe)
Set method for struct member 'editframe'.void
setEndframe(int endframe)
Set method for struct member 'endframe'.void
setFlag(int flag)
Set method for struct member 'flag'.void
setIndex(int index)
Set method for struct member 'index'.void
setInfo(CArrayFacade<java.lang.Byte> info)
Set method for struct member 'info'.void
setLast_exact(int last_exact)
Set method for struct member 'last_exact'.void
setLast_valid(int last_valid)
Set method for struct member 'last_valid'.void
setMem_cache(ListBase mem_cache)
Set method for struct member 'mem_cache'.void
setName(CArrayFacade<java.lang.Byte> name)
Set method for struct member 'name'.void
setNext(CPointer<PointCache> next)
Set method for struct member 'next'.void
setPath(CArrayFacade<java.lang.Byte> path)
Set method for struct member 'path'.void
setPrev(CPointer<PointCache> prev)
Set method for struct member 'prev'.void
setPrev_name(CArrayFacade<java.lang.Byte> prev_name)
Set method for struct member 'prev_name'.void
setSimframe(int simframe)
Set method for struct member 'simframe'.void
setStartframe(int startframe)
Set method for struct member 'startframe'.void
setStep(int step)
Set method for struct member 'step'.void
setTotpoint(int totpoint)
Set method for struct member 'totpoint'.-
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 PointCache.It is required when allocating a new block to store data for PointCache.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__next
public static final long[] __DNA__FIELD__next
Field descriptor (offset) for struct member 'next'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__next); CPointer<CPointer<PointCache>> p_next = p.cast(new Class[]{CPointer.class, PointCache.class});
Metadata
- Field: 'next'
- Signature: 'PointCache*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__prev
public static final long[] __DNA__FIELD__prev
Field descriptor (offset) for struct member 'prev'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__prev); CPointer<CPointer<PointCache>> p_prev = p.cast(new Class[]{CPointer.class, PointCache.class});
Metadata
- Field: 'prev'
- Signature: 'PointCache*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__flag
public static final long[] __DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.Field Documentation
Blender Source Code
Generic flag.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__flag); CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'flag'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__step
public static final long[] __DNA__FIELD__step
Field descriptor (offset) for struct member 'step'.Field Documentation
Blender Source Code
The number of frames between cached frames. This should probably be an upper bound for a per point adaptive step in the future, but for now it's the same for all points. Without adaptivity this can effect the perceived simulation quite a bit though. If for example particles are colliding with a horizontal plane (with high damping) they quickly come to a stop on the plane, however there are still forces acting on the particle (gravity and collisions), so the particle velocity isn't necessarily zero for the whole duration of the frame even if the particle seems stationary. If all simulation frames aren't cached (step > 1) these velocities are interpolated into movement for the non-cached frames. The result will look like the point is oscillating around the collision location. So for now cache step should be set to 1 for accurate reproduction of collisions.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__step); CPointer<Integer> p_step = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'step'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__simframe
public static final long[] __DNA__FIELD__simframe
Field descriptor (offset) for struct member 'simframe'.Field Documentation
Blender Source Code
Current frame of simulation (only if SIMULATION_VALID).
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__simframe); CPointer<Integer> p_simframe = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'simframe'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__startframe
public static final long[] __DNA__FIELD__startframe
Field descriptor (offset) for struct member 'startframe'.Field Documentation
Blender Source Code
Simulation
start frame.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__startframe); CPointer<Integer> p_startframe = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'startframe'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__endframe
public static final long[] __DNA__FIELD__endframe
Field descriptor (offset) for struct member 'endframe'.Field Documentation
Blender Source Code
Simulation
end frame.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__endframe); CPointer<Integer> p_endframe = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'endframe'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__editframe
public static final long[] __DNA__FIELD__editframe
Field descriptor (offset) for struct member 'editframe'.Field Documentation
Blender Source Code
Frame being edited (runtime only).
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__editframe); CPointer<Integer> p_editframe = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'editframe'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__last_exact
public static final long[] __DNA__FIELD__last_exact
Field descriptor (offset) for struct member 'last_exact'.Field Documentation
Blender Source Code
Last exact frame that's cached.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__last_exact); CPointer<Integer> p_last_exact = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'last_exact'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__last_valid
public static final long[] __DNA__FIELD__last_valid
Field descriptor (offset) for struct member 'last_valid'.Field Documentation
Blender Source Code
Used for editing cache - what is the last baked frame.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__last_valid); CPointer<Integer> p_last_valid = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'last_valid'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD___pad
public static final long[] __DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD___pad); CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: '_pad'
- Signature: 'char[4]'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__totpoint
public static final long[] __DNA__FIELD__totpoint
Field descriptor (offset) for struct member 'totpoint'.Field Documentation
Blender Source Code
for external cache files Number of cached points.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__totpoint); CPointer<Integer> p_totpoint = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'totpoint'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__index
public static final long[] __DNA__FIELD__index
Field descriptor (offset) for struct member 'index'.Field Documentation
Blender Python API
Index number of cache filesBlender Source Code
Modifier stack index.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__index); CPointer<Integer> p_index = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'index'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__compression
public static final long[] __DNA__FIELD__compression
Field descriptor (offset) for struct member 'compression'.Field Documentation
Blender Python API
Compression method to be usedPointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__compression); CPointer<Short> p_compression = p.cast(new Class[]{Short.class});
Metadata
- Field: 'compression'
- Signature: 'short'
- Actual Size (32bit/64bit): 2/2
-
__DNA__FIELD___pad0
public static final long[] __DNA__FIELD___pad0
Field descriptor (offset) for struct member '_pad0'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD___pad0); CPointer<CArrayFacade<Byte>> p__pad0 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: '_pad0'
- Signature: 'char[2]'
- Actual Size (32bit/64bit): 2/2
-
__DNA__FIELD__name
public static final long[] __DNA__FIELD__name
Field descriptor (offset) for struct member 'name'.Field Documentation
Blender Python API
Cache namePointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__name); CPointer<CArrayFacade<Byte>> p_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: 'name'
- Signature: 'char[64]'
- Actual Size (32bit/64bit): 64/64
-
__DNA__FIELD__prev_name
public static final long[] __DNA__FIELD__prev_name
Field descriptor (offset) for struct member 'prev_name'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__prev_name); CPointer<CArrayFacade<Byte>> p_prev_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: 'prev_name'
- Signature: 'char[64]'
- Actual Size (32bit/64bit): 64/64
-
__DNA__FIELD__info
public static final long[] __DNA__FIELD__info
Field descriptor (offset) for struct member 'info'.Field Documentation
Blender Python API
(read-only) Info on current cache statusPointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__info); CPointer<CArrayFacade<Byte>> p_info = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: 'info'
- Signature: 'char[128]'
- Actual Size (32bit/64bit): 128/128
-
__DNA__FIELD__path
public static final long[] __DNA__FIELD__path
Field descriptor (offset) for struct member 'path'.Field Documentation
Blender Source Code
File path, 1024 = FILE_MAX.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__path); CPointer<CArrayFacade<Byte>> p_path = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: 'path'
- Signature: 'char[1024]'
- Actual Size (32bit/64bit): 1024/1024
-
__DNA__FIELD__cached_frames
public static final long[] __DNA__FIELD__cached_frames
Field descriptor (offset) for struct member 'cached_frames'.Field Documentation
Blender Source Code
with flags to indicate cached frames. Can be later used for other per frame flags too if needed.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__cached_frames); CPointer<CPointer<Byte>> p_cached_frames = p.cast(new Class[]{CPointer.class, Byte.class});
Metadata
- Field: 'cached_frames'
- Signature: 'char*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__cached_frames_len
public static final long[] __DNA__FIELD__cached_frames_len
Field descriptor (offset) for struct member 'cached_frames_len'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__cached_frames_len); CPointer<Integer> p_cached_frames_len = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'cached_frames_len'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD___pad1
public static final long[] __DNA__FIELD___pad1
Field descriptor (offset) for struct member '_pad1'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD___pad1); CPointer<CArrayFacade<Byte>> p__pad1 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: '_pad1'
- Signature: 'char[4]'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__mem_cache
public static final long[] __DNA__FIELD__mem_cache
Field descriptor (offset) for struct member 'mem_cache'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__mem_cache); CPointer<ListBase> p_mem_cache = p.cast(new Class[]{ListBase.class});
Metadata
- Field: 'mem_cache'
- Signature: 'ListBase'
- Actual Size (32bit/64bit): 8/16
-
__DNA__FIELD__edit
public static final long[] __DNA__FIELD__edit
Field descriptor (offset) for struct member 'edit'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PointCache pointcache = ...; CPointer<Object> p = pointcache.__dna__addressof(PointCache.__DNA__FIELD__edit); CPointer<CPointer<Object>> p_edit = p.cast(new Class[]{CPointer.class, Object.class});
Metadata
- Field: 'edit'
- Signature: 'PTCacheEdit*'
- Actual Size (32bit/64bit): 4/8
-
-
Constructor Detail
-
PointCache
public PointCache(long __address, Block __block, BlockTable __blockTable)
-
PointCache
protected PointCache(PointCache that)
-
-
Method Detail
-
getNext
public CPointer<PointCache> getNext() throws java.io.IOException
Get method for struct member 'next'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__next
-
setNext
public void setNext(CPointer<PointCache> next) throws java.io.IOException
Set method for struct member 'next'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__next
-
getPrev
public CPointer<PointCache> getPrev() throws java.io.IOException
Get method for struct member 'prev'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__prev
-
setPrev
public void setPrev(CPointer<PointCache> prev) throws java.io.IOException
Set method for struct member 'prev'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__prev
-
getFlag
public int getFlag() throws java.io.IOException
Get method for struct member 'flag'.Field Documentation
Blender Source Code
Generic flag.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__flag
-
setFlag
public void setFlag(int flag) throws java.io.IOException
Set method for struct member 'flag'.Field Documentation
Blender Source Code
Generic flag.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__flag
-
getStep
public int getStep() throws java.io.IOException
Get method for struct member 'step'.Field Documentation
Blender Source Code
The number of frames between cached frames. This should probably be an upper bound for a per point adaptive step in the future, but for now it's the same for all points. Without adaptivity this can effect the perceived simulation quite a bit though. If for example particles are colliding with a horizontal plane (with high damping) they quickly come to a stop on the plane, however there are still forces acting on the particle (gravity and collisions), so the particle velocity isn't necessarily zero for the whole duration of the frame even if the particle seems stationary. If all simulation frames aren't cached (step > 1) these velocities are interpolated into movement for the non-cached frames. The result will look like the point is oscillating around the collision location. So for now cache step should be set to 1 for accurate reproduction of collisions.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__step
-
setStep
public void setStep(int step) throws java.io.IOException
Set method for struct member 'step'.Field Documentation
Blender Source Code
The number of frames between cached frames. This should probably be an upper bound for a per point adaptive step in the future, but for now it's the same for all points. Without adaptivity this can effect the perceived simulation quite a bit though. If for example particles are colliding with a horizontal plane (with high damping) they quickly come to a stop on the plane, however there are still forces acting on the particle (gravity and collisions), so the particle velocity isn't necessarily zero for the whole duration of the frame even if the particle seems stationary. If all simulation frames aren't cached (step > 1) these velocities are interpolated into movement for the non-cached frames. The result will look like the point is oscillating around the collision location. So for now cache step should be set to 1 for accurate reproduction of collisions.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__step
-
getSimframe
public int getSimframe() throws java.io.IOException
Get method for struct member 'simframe'.Field Documentation
Blender Source Code
Current frame of simulation (only if SIMULATION_VALID).
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__simframe
-
setSimframe
public void setSimframe(int simframe) throws java.io.IOException
Set method for struct member 'simframe'.Field Documentation
Blender Source Code
Current frame of simulation (only if SIMULATION_VALID).
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__simframe
-
getStartframe
public int getStartframe() throws java.io.IOException
Get method for struct member 'startframe'.Field Documentation
Blender Source Code
Simulation
start frame.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__startframe
-
setStartframe
public void setStartframe(int startframe) throws java.io.IOException
Set method for struct member 'startframe'.Field Documentation
Blender Source Code
Simulation
start frame.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__startframe
-
getEndframe
public int getEndframe() throws java.io.IOException
Get method for struct member 'endframe'.Field Documentation
Blender Source Code
Simulation
end frame.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__endframe
-
setEndframe
public void setEndframe(int endframe) throws java.io.IOException
Set method for struct member 'endframe'.Field Documentation
Blender Source Code
Simulation
end frame.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__endframe
-
getEditframe
public int getEditframe() throws java.io.IOException
Get method for struct member 'editframe'.Field Documentation
Blender Source Code
Frame being edited (runtime only).
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__editframe
-
setEditframe
public void setEditframe(int editframe) throws java.io.IOException
Set method for struct member 'editframe'.Field Documentation
Blender Source Code
Frame being edited (runtime only).
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__editframe
-
getLast_exact
public int getLast_exact() throws java.io.IOException
Get method for struct member 'last_exact'.Field Documentation
Blender Source Code
Last exact frame that's cached.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__last_exact
-
setLast_exact
public void setLast_exact(int last_exact) throws java.io.IOException
Set method for struct member 'last_exact'.Field Documentation
Blender Source Code
Last exact frame that's cached.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__last_exact
-
getLast_valid
public int getLast_valid() throws java.io.IOException
Get method for struct member 'last_valid'.Field Documentation
Blender Source Code
Used for editing cache - what is the last baked frame.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__last_valid
-
setLast_valid
public void setLast_valid(int last_valid) throws java.io.IOException
Set method for struct member 'last_valid'.Field Documentation
Blender Source Code
Used for editing cache - what is the last baked frame.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__last_valid
-
get_pad
public CArrayFacade<java.lang.Byte> get_pad() throws java.io.IOException
Get method for struct member '_pad'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad
-
set_pad
public void set_pad(CArrayFacade<java.lang.Byte> _pad) throws java.io.IOException
Set method for struct member '_pad'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad
-
getTotpoint
public int getTotpoint() throws java.io.IOException
Get method for struct member 'totpoint'.Field Documentation
Blender Source Code
for external cache files Number of cached points.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__totpoint
-
setTotpoint
public void setTotpoint(int totpoint) throws java.io.IOException
Set method for struct member 'totpoint'.Field Documentation
Blender Source Code
for external cache files Number of cached points.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__totpoint
-
getIndex
public int getIndex() throws java.io.IOException
Get method for struct member 'index'.Field Documentation
Blender Python API
Index number of cache filesBlender Source Code
Modifier stack index.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__index
-
setIndex
public void setIndex(int index) throws java.io.IOException
Set method for struct member 'index'.Field Documentation
Blender Python API
Index number of cache filesBlender Source Code
Modifier stack index.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__index
-
getCompression
public short getCompression() throws java.io.IOException
Get method for struct member 'compression'.Field Documentation
Blender Python API
Compression method to be used- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__compression
-
setCompression
public void setCompression(short compression) throws java.io.IOException
Set method for struct member 'compression'.Field Documentation
Blender Python API
Compression method to be used- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__compression
-
get_pad0
public CArrayFacade<java.lang.Byte> get_pad0() throws java.io.IOException
Get method for struct member '_pad0'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad0
-
set_pad0
public void set_pad0(CArrayFacade<java.lang.Byte> _pad0) throws java.io.IOException
Set method for struct member '_pad0'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad0
-
getName
public CArrayFacade<java.lang.Byte> getName() throws java.io.IOException
Get method for struct member 'name'.Field Documentation
Blender Python API
Cache name- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__name
-
setName
public void setName(CArrayFacade<java.lang.Byte> name) throws java.io.IOException
Set method for struct member 'name'.Field Documentation
Blender Python API
Cache name- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__name
-
getPrev_name
public CArrayFacade<java.lang.Byte> getPrev_name() throws java.io.IOException
Get method for struct member 'prev_name'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__prev_name
-
setPrev_name
public void setPrev_name(CArrayFacade<java.lang.Byte> prev_name) throws java.io.IOException
Set method for struct member 'prev_name'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__prev_name
-
getInfo
public CArrayFacade<java.lang.Byte> getInfo() throws java.io.IOException
Get method for struct member 'info'.Field Documentation
Blender Python API
(read-only) Info on current cache status- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__info
-
setInfo
public void setInfo(CArrayFacade<java.lang.Byte> info) throws java.io.IOException
Set method for struct member 'info'.Field Documentation
Blender Python API
(read-only) Info on current cache status- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__info
-
getPath
public CArrayFacade<java.lang.Byte> getPath() throws java.io.IOException
Get method for struct member 'path'.Field Documentation
Blender Source Code
File path, 1024 = FILE_MAX.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__path
-
setPath
public void setPath(CArrayFacade<java.lang.Byte> path) throws java.io.IOException
Set method for struct member 'path'.Field Documentation
Blender Source Code
File path, 1024 = FILE_MAX.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__path
-
getCached_frames
public CPointer<java.lang.Byte> getCached_frames() throws java.io.IOException
Get method for struct member 'cached_frames'.Field Documentation
Blender Source Code
with flags to indicate cached frames. Can be later used for other per frame flags too if needed.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cached_frames
-
setCached_frames
public void setCached_frames(CPointer<java.lang.Byte> cached_frames) throws java.io.IOException
Set method for struct member 'cached_frames'.Field Documentation
Blender Source Code
with flags to indicate cached frames. Can be later used for other per frame flags too if needed.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cached_frames
-
getCached_frames_len
public int getCached_frames_len() throws java.io.IOException
Get method for struct member 'cached_frames_len'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cached_frames_len
-
setCached_frames_len
public void setCached_frames_len(int cached_frames_len) throws java.io.IOException
Set method for struct member 'cached_frames_len'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cached_frames_len
-
get_pad1
public CArrayFacade<java.lang.Byte> get_pad1() throws java.io.IOException
Get method for struct member '_pad1'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad1
-
set_pad1
public void set_pad1(CArrayFacade<java.lang.Byte> _pad1) throws java.io.IOException
Set method for struct member '_pad1'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad1
-
getMem_cache
public ListBase getMem_cache() throws java.io.IOException
Get method for struct member 'mem_cache'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__mem_cache
-
setMem_cache
public void setMem_cache(ListBase mem_cache) throws java.io.IOException
Set method for struct member 'mem_cache'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__mem_cache
-
getEdit
public CPointer<java.lang.Object> getEdit() throws java.io.IOException
Get method for struct member 'edit'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__edit
-
setEdit
public void setEdit(CPointer<java.lang.Object> edit) throws java.io.IOException
Set method for struct member 'edit'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__edit
-
__io__addressof
public CPointer<PointCache> __io__addressof()
Instantiates a pointer on this instance.
-
-