Vec3_dAttribute (object)

Specialized GeometryAttribute containing one Vec3_d per element. Values can be accessed with the Vec3_dAttribute.values array member, but its usage might be restricted by the owner Geometry.

Vec3_dAttribute Vec3_dAttribute Vec3_dAttribute BaseAttribute BaseAttribute Vec3_dAttribute->BaseAttribute GeometryAttribute GeometryAttribute BaseAttribute->GeometryAttribute StatisticSourceWithAutoRegisterMember StatisticSourceWithAutoRegisterMember BaseAttribute->StatisticSourceWithAutoRegisterMember Versioned Versioned BaseAttribute->Versioned

Members

UInt32 version  
String name  
UInt32 containerIndex  
StatisticsAutoRegisterMember autoStats  
Size count  
Ref<GeometryAttributes> container  
Vec3_d[] values Values array container
Boolean normalize If true, IntegerAttribute.linearCombine and IntegerAttribute.getLinearCombination will normalize the resulting value.

Methods

  Vec3_dAttribute ( in Vec3_dAttribute other )
  Vec3_dAttribute ()
Boolean checkConsistency ? ()
Vec3_dAttribute clone ? ()
  cloneMembersTo ? ( io Vec3_dAttribute that )
  convertToCPU ! ()
  convertToGPU ! ()
  copyValue ! ( in Ref<Object> sourceAttr, in Size sourceIndex, in Size targetIndex )
  copyValue ! ( in Size sourceIndex, in Size targetIndex )
Data data ? ()
Boolean equalValues ? ( in Size index1, in Size index2 )
UInt32 getElementsMemType ? ()
Vec3_d getLinearCombination ? ( in LocalL16UInt32Array sourceIndices, in LocalL16ScalarArray sourceWeights )
Size getScalarValueSize ? ()
  linearCombine ! ( in Ref<Object> sourceAttr, in LocalL16UInt32Array sourceIndices, in LocalL16ScalarArray sourceWeights, in Size targetIndex )
  resize ! ( in Size count )
  setFromScalar ! ( in Size index, in LocalL16ScalarArray value )
String truncateDecimalsPrint ? ( in Size index, in UInt32 n )
String unitTestPrint ? ( in Size index )
String valueDesc ? ( in Size index )

Methods in detail

Vec3_dAttribute ( in Vec3_dAttribute other )

copy constructor


Vec3_dAttribute ()

default constructor


Boolean Vec3_dAttribute.checkConsistency? ()

バージョン 2.4.0 で追加.

Checks the attribute data consistency.


Vec3_dAttribute Vec3_dAttribute.clone? ()

clone method


Vec3_dAttribute.cloneMembersTo? ( io Vec3_dAttribute that )


Vec3_dAttribute.convertToCPU! ()


Vec3_dAttribute.convertToGPU! ()


Vec3_dAttribute.copyValue! ( in Ref<Object> sourceAttr, in Size sourceIndex, in Size targetIndex )

Replaces the value located at targetIndex with source attribute’s value located at sourceIndex. The source attribute will be of the same type.


Vec3_dAttribute.copyValue! ( in Size sourceIndex, in Size targetIndex )

Replaces the value located at targetIndex with the value located at sourceIndex


Data Vec3_dAttribute.data? ()

Returns a raw pointer to contiguous attribute data, if applicable, and an uninitialized Data otherwise.


Boolean Vec3_dAttribute.equalValues? ( in Size index1, in Size index2 )

Return true if two values are logically equal.


UInt32 Vec3_dAttribute.getElementsMemType? ()


Vec3_d Vec3_dAttribute.getLinearCombination? ( in LocalL16UInt32Array sourceIndices, in LocalL16ScalarArray sourceWeights )

Returns a linear combination of source values. If QuatAttribute.normalize, the resulting value will be normalized.

sourceIndices The array of source indices
sourceWeights The array of source weights, which need to correspond to each sourceIndices. Normally the sum of the weights should be 1.0


Size Vec3_dAttribute.getScalarValueSize? ()

If all attribute values can be expressed as a constant Scalar array, returns the constant number of elements, 0 otherwise.


Vec3_dAttribute.linearCombine! ( in Ref<Object> sourceAttr, in LocalL16UInt32Array sourceIndices, in LocalL16ScalarArray sourceWeights, in Size targetIndex )

Sets the value located at targetIndex as a linear combination of other values.

source The attribute for source values
sourceIndices The array of source indices, relatively to the source attribute.
sourceWeights The array of source weights, which need to correspond to each sourceIndices. Normally the sum of the weights should be 1.0.
targetIndex The target value index.


Vec3_dAttribute.resize! ( in Size count )

Resizes the attribute array.


Vec3_dAttribute.setFromScalar! ( in Size index, in LocalL16ScalarArray value )

If applicable, sets an attribute value from an array of Scalars. This array must have a size of GeometryAttribute.getScalarValueSize .


String Vec3_dAttribute.truncateDecimalsPrint? ( in Size index, in UInt32 n )

Returns a description of the value, keeping the first n decimals (Float32 or Float64 based values).


String Vec3_dAttribute.unitTestPrint? ( in Size index )

Returns a numerically stable description of the value


String Vec3_dAttribute.valueDesc? ( in Size index )

Returns a description of the value