![]() |
VOOZH | about |
dotnet add package L3D.Net --version 0.18.1
NuGet\Install-Package L3D.Net -Version 0.18.1
<PackageReference Include="L3D.Net" Version="0.18.1" />
<PackageVersion Include="L3D.Net" Version="0.18.1" />Directory.Packages.props
<PackageReference Include="L3D.Net" />Project file
paket add L3D.Net --version 0.18.1
#r "nuget: L3D.Net, 0.18.1"
#:package L3D.Net@0.18.1
#addin nuget:?package=L3D.Net&version=0.18.1Install as a Cake Addin
#tool nuget:?package=L3D.Net&version=0.18.1Install as a Cake Tool
👁 OnPublishedRelease
👁 OnPush develop
👁 NuGet Status
.NET Standard 2.0 library for the Luminaire 3D L3D
With the library it is possible to read and build L3D container files. For that the library exposes two classes ' Builder' and 'Reader'. The Builder has a fluent API for defining all the luminaire parts and build the target container file. With the Reader is is possible to read the content of a L3D container and to parse the containing .obj files at once. So there is no other .obj parser needed.
Add the package within your IDE or using the CLI
dotnet add package L3D.Net
Simple builder exmaple.
var luminaire = new Luminaire();
luminaire.Header = new Header
{
CreatedWithApplication = "Example-Tool"
};
var geometryDefinition = new GeometryFileDefinition
{
GeometryId = "PN.Ab12",
Units = GeometricUnits.m,
Model = ObjParser.Instance.Parse(cubeObjPath, NullLogger.Instance),
FileName = cubeObjPath
};
luminaire.GeometryDefinitions = new List<GeometryFileDefinition>
{
geometryDefinition
};
luminaire.Parts = new List<GeometryPart>
{
new()
{
Name = "luminaire",
LightEmittingObjects = new List<LightEmittingPart>
{
new(new Rectangle { SizeX = 0.5, SizeY = 0.25 })
{
Name = "leo"
}
},
LightEmittingSurfaces = new List<LightEmittingSurfacePart>
{
new()
{
Name = "les",
FaceAssignments = new List<FaceAssignment>
{
new SingleFaceAssignment
{
FaceIndex = 3
}
},
LightEmittingPartIntensityMapping = new Dictionary<string, double>
{
["leo"] = 1
}
}
},
GeometryReference = geometryDefinition
}
};
IWriter writer = new Writer();
var bytes = writer.WriteToByteArray(luminaire);
Read an L3D container from disk:
var reader = new Reader();
var container = reader.ReadContainer("path/to/container.l3d");
foreach (var geometryPartDto in container.Parts)
{
// ...
var model = geometryPartDto.GeometryDefinition.Model;
foreach (var vertex in model.Vertices)
{
// .obj-Model vertices
}
// ...
foreach (var lightEmittingPartDto in geometryPartDto.LightEmittingObjects)
{
// do something for light emitting part
}
// ...
}
Read an L3D container already read from disk in byte array (byte[]) format:
var reader = new Reader();
byte[] l3dContainer = // Get a byte[] representation of an L3D container;
var container = reader.ReadContainer(l3dContainer);
foreach (var geometryPartDto in container.Parts)
{
// From here on out everything is identical to the reading an L3D container from disk example,
// see the code sample above.
}
Validation of an L3D container from disk:
var validator = new Validator();
var validationHints = validator.ValidateContainer("path/to/container.l3d");
if (!validationHints.Any())
// Container validation successful
else
// Container validation unsuccessful
Validation of an L3D container already read from disk in byte array (byte[]) format:
var validator = new Validator();
byte[] l3dContainer = // Get a byte[] representation of an L3D container;
var validationHints = validator.ValidateContainer(l3dContainer);
if (!validationHints.Any())
// Container validation successful
else
// Container validation unsuccessful
L3D.NET is able to read old and new unknown versions, with the exception of a new major version.
When a new minor version is read, it is possible that optional information is not read. If the L3D is saved again, this information is not written either and the version is set to the latest version of the L3D.NET component.
The following table explains this behaviour summarized:
| File version | L3D.NET version | Can read | Can write | Read and write changes the file |
|---|---|---|---|---|
| 1.0.0.0 | 0.9.0.0 | no | no | N/A |
| 0.9.0.0 | 1.0.0.0 | yes | yes* | yes - the version is updated and the content accordingly too |
| 1.0.0.0 | 1.0.0.0 | yes | yes | no |
| 0.9.2.0 | 0.9.0.0 | yes* | yes* | yes - some optional information may not be read or written |
| 0.9.0.0 | 0.9.2.0 | yes | yes* | yes - the version is updated and the content accordingly too |
Please use the discussion section for questions or create issues, when something seems to be wrong. PRs are welcome.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.18.2-alpha.0.10 | 56 | 5/20/2026 |
| 0.18.2-alpha.0.9 | 63 | 5/7/2026 |
| 0.18.2-alpha.0.8 | 66 | 4/8/2026 |
| 0.18.2-alpha.0.6 | 84 | 3/16/2026 |
| 0.18.2-alpha.0.4 | 72 | 3/6/2026 |
| 0.18.2-alpha.0.1 | 75 | 2/17/2026 |
| 0.18.2-alpha.0 | 87 | 2/17/2026 |
| 0.18.1 | 148 | 1/14/2026 |
| 0.18.1-alpha.0.11 | 70 | 2/17/2026 |
| 0.18.1-alpha.0.9 | 160 | 12/22/2025 |
| 0.18.1-alpha.0.4 | 417 | 12/8/2025 |
| 0.18.1-alpha.0.2 | 642 | 12/1/2025 |
| 0.18.1-alpha.0.1 | 174 | 11/27/2025 |
| 0.18.1-alpha.0 | 274 | 11/12/2025 |
| 0.18.0 | 348 | 11/11/2025 |
| 0.18.0-alpha.0.8 | 279 | 11/11/2025 |
| 0.18.0-alpha.0.4 | 274 | 11/11/2025 |
| 0.18.0-alpha.0.2 | 179 | 11/5/2025 |
| 0.18.0-alpha.0.1 | 181 | 11/5/2025 |
| 0.18.0-alpha.0 | 188 | 11/4/2025 |