H073.HxPLY
0.1.0
Prefix Reserved
dotnet add package H073.HxPLY --version 0.1.0
NuGet\Install-Package H073.HxPLY -Version 0.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="H073.HxPLY" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="H073.HxPLY" Version="0.1.0" />
<PackageReference Include="H073.HxPLY" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add H073.HxPLY --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: H073.HxPLY, 0.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package H073.HxPLY@0.1.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=H073.HxPLY&version=0.1.0
#tool nuget:?package=H073.HxPLY&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HxPLY
Pure C# PLY (Polygon File Format) reader and writer. Zero dependencies.
Features
- All three formats: ASCII, binary little-endian, binary big-endian
- All 8 scalar types: char, uchar, short, ushort, int, uint, float, double (+ aliases int8, uint8, etc.)
- List properties: variable-length arrays (face indices, etc.)
- Arbitrary elements: vertex, face, edge, and any custom elements
- Gaussian Splatting: position, SH coefficients, scale, rotation, opacity
- Column-oriented storage: typed arrays per property, zero-copy access
- Round-trip: read and write any PLY file losslessly
- Async: ReadAsync / WriteAsync
Usage
Read
var ply = PlyReader.Read("model.ply");
// Vertices
var v = ply.Vertices!;
float[] x = v.GetFloat("x");
float[] y = v.GetFloat("y");
float[] z = v.GetFloat("z");
// Colors (if present)
if (v.HasProperty("red"))
{
byte[] r = v.GetByte("red");
byte[] g = v.GetByte("green");
byte[] b = v.GetByte("blue");
}
// Faces (if present)
var f = ply.Faces;
if (f != null)
{
int[][] indices = f.GetListInt("vertex_indices");
}
// Gaussian Splatting
if (v.HasProperty("scale_0"))
{
float[] opacity = v.GetFloat("opacity");
float[] scale0 = v.GetFloat("scale_0");
float[] rot0 = v.GetFloat("rot_0");
float[] dc0 = v.GetFloat("f_dc_0");
}
Converting accessors
// GetAsFloat converts any numeric type to float[]
float[] values = v.GetAsFloat("red"); // byte[] -> float[]
Write
PlyWriter.Write("output.ply", ply);
PlyWriter.Write("output.ply", ply, PlyFormat.BinaryLittleEndian);
Async
var ply = await PlyReader.ReadAsync("large_scan.ply");
await PlyWriter.WriteAsync("output.ply", ply);
Supported PLY features
| Feature | Status |
|---|---|
| ASCII format | supported |
| Binary little-endian | supported |
| Binary big-endian | supported |
| Scalar properties (8 types) | supported |
| List properties | supported |
| Comments | supported |
| obj_info | supported |
| Multiple elements | supported |
| Zero-count elements | supported |
| Custom element names | supported |
| Gaussian Splatting data | supported |
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 290 | 3/29/2026 |