• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Struct MeshPatch

A Coons patch or tensor-product patch for mesh shadings (spec §8.7.4.5.7-8).

Implements
IEquatable<MeshPatch>
Inherited Members
ValueType.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public readonly struct MeshPatch : IEquatable<MeshPatch>

Constructors

MeshPatch(IList<MeshVertex>)

Initializes a mesh patch with the specified control points.

Declaration
public MeshPatch(IList<MeshVertex> controlPoints)
Parameters
Type Name Description
IList<MeshVertex> controlPoints

Properties

ControlPoints

Gets the control points.

Declaration
public IReadOnlyList<MeshVertex> ControlPoints { get; }
Property Value
Type Description
IReadOnlyList<MeshVertex>

Methods

Equals(MeshPatch)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(MeshPatch other)
Parameters
Type Name Description
MeshPatch other

An object to compare with this object.

Returns
Type Description
bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj

The object to compare with the current instance.

Returns
Type Description
bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Overrides
ValueType.Equals(object)

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A 32-bit signed integer that is the hash code for this instance.

Overrides
ValueType.GetHashCode()

Operators

operator ==(MeshPatch, MeshPatch)

Equality operator.

Declaration
public static bool operator ==(MeshPatch a, MeshPatch b)
Parameters
Type Name Description
MeshPatch a
MeshPatch b
Returns
Type Description
bool

operator !=(MeshPatch, MeshPatch)

Inequality operator.

Declaration
public static bool operator !=(MeshPatch a, MeshPatch b)
Parameters
Type Name Description
MeshPatch a
MeshPatch b
Returns
Type Description
bool

Implements

IEquatable<T>
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX