Code Monkey home page Code Monkey logo

Comments (8)

FractalFir avatar FractalFir commented on July 18, 2024 1

fee157a adds support for reading tangents from disk. After tangent triangle segment will be added, this feature will be complete.

from tmf.

FractalFir avatar FractalFir commented on July 18, 2024

Which API representations for tangents would be easier to work with? One where w is represented as a bool denoting handedness or as a float with value of either -1 or 1? The representation on disk will be the same, and any performance difference negligible. I don't know the use cases for tangents look like exactly, so it is hard for me to envision which would be more ergonomic to use.

from tmf.

FractalFir avatar FractalFir commented on July 18, 2024

170bf31 adds support for setting/getting tangent arrays on a mesh and saving them to disk (reading is partially implemented). Current API representation of Tangent is tuple ((float, float, float), float). I am still looking for feedback on this API representation of tangents.

from tmf.

FractalFir avatar FractalFir commented on July 18, 2024

ac53b94 adds support for saving and loading tangent triangle index arrays. This feature is complete, and I am just waiting for more input on the current API.

from tmf.

nicopap avatar nicopap commented on July 18, 2024

I noticed there is no way to read the value of HandenesType (also, I think it should be spelled Handedness). Maybe make the field pub?

from tmf.

nicopap avatar nicopap commented on July 18, 2024

I've done the following on the fork I use

impl From<FloatType> for HandenesType {
    fn from(value: FloatType) -> Self {
        HandenesType(value)
    }
}
impl From<HandenesType> for FloatType {
    fn from(value: HandenesType) -> Self {
        value.0
    }
}

from tmf.

FractalFir avatar FractalFir commented on July 18, 2024

HanenessType being a struct was an oversight on my part (something temporary that I forgot to remove). HanenessType was supposed to be entirely internal (just a normal float to the consumer of the API), as a way to make functions signatures more clear. Now it is just an alias for FloatType, which is an alias for either f32 or f64, depending on feature flags set.

from tmf.

FractalFir avatar FractalFir commented on July 18, 2024

Since there are no more comments, I assume the current API is OK.

from tmf.

Related Issues (12)

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.