Zjišťuje normály meshe vrstvy DirectX Mesh s filtrováním normál.
Jmenný prostor:
SGP.XSpaceKnihovna: SGPRTL (v SGPRTL)
Verze: dll
Syntaxe
C# |
---|
public static Vector3[] GetMeshNormals( Mesh mesh, int[] indices ) |
Parametry
- mesh
- Typ: Mesh
Mesh vrstvy DirectX Mesh.
- indices
- Typ: array<
System..::.Int32
>[]()[]
Pole čísel indexu, které určují indexy vrcholů, jejichž normály mají být vráceny.
Návratová hodnota
Vrátí pole normál meshe.
Výjimky
Výjimka | Podmínka |
---|---|
System..::.ArgumentNullException | mesh je nullNothingnullptrnulová reference (Nothing v Visual Basic). |
System..::.ArgumentNullException | indices je nullNothingnullptrnulová reference (Nothing v Visual Basic). |