c4d.NormalTag

class c4d.NormalTag

Tag which handles normal buffers.

The instance object class of type Tnormal.

It consists of a list of integer.

Note

Contains 12 times more elements than VariableTag.GetDataCount() returns.

Methods Signatures

NormalTag.__init__(self, count)

type count

int

NormalTag.GetDataAddressW(self)

Gets a handle to the writable point normal data.

NormalTag.GetDataAddressR(self)

Gets a handle to the read-only point normal data.

Static Methods Signatures

c4d.NormalTag.Get(data, i)

Gets the point normals for a polygon.

c4d.NormalTag.Set(data, i, s)

Sets the point normals for a polygon.

c4d.NormalTag.Copy(destptr, dst, srcptr, src)

Copies point normals.

Inheritance

Parent Class:

Methods Documentation

NormalTag.__init__(self, count)
Parameters

count (int) – The number of elements in the tag.

NormalTag.GetDataAddressW(self)

Gets a handle to the writable point normal data.

New in version S26.

Returns

The writable point normal data.

Return type

PyCObject.

NormalTag.GetDataAddressR(self)

Gets a handle to the read-only point normal data.

New in version S26.

Returns

The read-only point normal data.

Return type

PyCObject.

Static Methods Documentation

static c4d.NormalTag.Get(data, i)

Gets the point normals for a polygon.

New in version S26.

Parameters
  • data (PyCObject) – The handle to the point normal data. The PyCObject returned by NormalTag.GetDataAddressR().

  • i (int) – The index of the polygon to get the point normals for.

Returns

The assigned the point normals.

Return type

Dict[a: c4d.Vector, b: c4d.Vector, c: c4d.Vector, c: c4d.Vector]

static c4d.NormalTag.Set(data, i, s)

Sets the point normals for a polygon.

New in version S26.

Parameters
  • data (PyCObject) – The handle to the point normal data. The PyCObject returned by NormalTag.GetDataAddressW().

  • i (int) – The index of the polygon to set the point normals for.

  • s (Dict[a: c4d.Vector, b: c4d.Vector, c: c4d.Vector, c: c4d.Vector]) – The point normals to set.

static c4d.NormalTag.Copy(destptr, dst, srcptr, src)

Copies point normals.

New in version S26.

Parameters
  • destptr (PyCObject) – The handle to the destination point normal data. The PyCObject returned by NormalTag.GetDataAddressW().

  • dst (int) – The destination polygon index in the destination data destptr.

  • srcptr (PyCObject) – The handle to the source point normal data. The PyCObject returned by NormalTag.GetDataAddressR().

  • src (int) – The source polygon index in the source data srcptr.