Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 12 18:04

    dependabot[bot] on cargo

    (compare)

  • Aug 12 18:04

    dependabot[bot] on cargo

    Update winit requirement from ^… (compare)

  • Aug 01 18:06

    dependabot[bot] on cargo

    (compare)

  • Aug 01 18:06

    dependabot[bot] on cargo

    Update winit requirement from ^… (compare)

  • Aug 01 18:05

    dependabot[bot] on cargo

    (compare)

  • Aug 01 18:05

    dependabot[bot] on cargo

    Update nalgebra requirement fro… (compare)

  • Jul 27 18:06

    dependabot[bot] on cargo

    (compare)

  • Jul 27 18:06

    dependabot[bot] on cargo

    Update winit requirement from ^… (compare)

  • May 02 18:04

    dependabot[bot] on cargo

    (compare)

  • May 02 18:04

    dependabot[bot] on cargo

    Update nalgebra requirement fro… (compare)

  • Feb 14 18:05

    dependabot[bot] on cargo

    (compare)

  • Feb 14 18:04

    dependabot[bot] on cargo

    Update rand requirement from ^0… (compare)

  • Feb 03 01:52

    olson-sean-k on edition

    (compare)

  • Feb 03 01:38

    dependabot[bot] on cargo

    Update nalgebra requirement fro… (compare)

  • Feb 03 01:37

    olson-sean-k on master

    Upgrade to Rust 2021 Edition an… (compare)

  • Feb 02 22:14

    olson-sean-k on edition

    Upgrade to Rust 2021 Edition an… (compare)

  • Feb 02 09:15

    olson-sean-k on master

    Use implicit conversion in APIs… (compare)

  • Jan 24 18:04

    dependabot[bot] on cargo

    (compare)

  • Jan 24 18:04

    dependabot[bot] on cargo

    Update approx requirement from … (compare)

  • Jan 10 18:05

    dependabot[bot] on cargo

    (compare)

Moritz Mœller
@virtualritz
Is there a way to get a MeshBuffer that contains n-gons?
As in: index slice and face arity slice.
Sean Olson
@olson-sean-k
@virtualritz MeshBuffer encodes index and arity information into the slice provided by the as_index_slice function when using a Polygonal type as the Grouping.
For example, given the type MeshBuffer<UnboundedPolygon<usize>, Vec3>, the as_index_slice function returns &[UnboundedPolygon<usize>]. Each element of that slice has an independent arity that can be queried via the DynamicArity trait's arity function.
Is that what you're looking for? :-) If so, take a look at the MeshBufferN type definition. It's the same as the (very long) type I mentioned above, but spelled out in the much shorter form MeshBufferN<usize, Vec3>.
Moritz Mœller
@virtualritz
Yes, I think that's what I need.
I'm working on a new version of my https://crates.io/crates/nsi crate and I wanted to add a sample where some plexus geometry is rendered as a subdiv surface with creases. :)
Sean Olson
@olson-sean-k
Awesome! That'd be cool to see. :-D Please let me know if something in Plexus isn't working for you.