Giter Site home page Giter Site logo

mayswind / c3d.net Goto Github PK

View Code? Open in Web Editor NEW
10.0 6.0 3.0 162 KB

C3D.NET is a free class library for manipulating C3D file. This project supports .NET 2.0 and .NET 4.0, and provides a free Data Viewer based on this library.

License: MIT License

C# 100.00%

c3d.net's Introduction

C3D.NET

License Lastest Release Nuget Package

Project Description

C3D.NET is a free class library written in C# for manipulating C3D file. This project supports .NET 2.0 and .NET 4.0, and provides a free Data Viewer based on this library.

C3D.NET DataViewer

The C3D format is a public domain, binary file format that has been used in Biomechanics, Animation and Gait Analysis laboratories to record synchronized 3D and analog data.

For more information on C3D file, please visit http://www.c3d.org

Examle Usage

You can use these code to load a C3D file and output all points.

C3DFile file = C3DFile.LoadFromFile("FILE PATH");
UInt16 firstFrameIndex = file.Header.FirstFrameIndex;
UInt16 pointCount = file.Parameters.GetParameterData<UInt16>("POINT:USED");

for (Int32 i = 0; i < file.AllFrames.Count; i++)
{
    C3DFrame frame = file.AllFrames[i];

    for (Int32 j = 0; j < pointCount; j++)
    {
        C3DPoint3DData point3D = frame.Point3Ds[j];

        Console.WriteLine("Frame {0} : X = {1}, Y = {2}, Z = {3}",
            firstFrameIndex + i, point3D.X, point3D.Y, point3D.Z);
    }
}

Documentation: https://github.com/mayswind/C3D.NET/wiki/Documentation

Installation

Using Nuget

PM> Install-Package C3D.NET

Binary Library

Latest Release: https://github.com/mayswind/C3D.NET/releases

More

CodePlex Page: https://c3d.codeplex.com

NuGet: http://www.nuget.org/packages/C3D.NET

GitHub Page https://github.com/mayswind/C3D.NET

An article about C3D file type and this project (Simplified Chinese): http://www.cnblogs.com/mayswind/p/3369090.html

c3d.net's People

Contributors

mayswind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

c3d.net's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.