Git Product home page Git Product logo

3mf-samples's People

Contributors

alexmeckes avatar jordig100 avatar netfabb avatar pabloprado avatar pencerw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

3mf-samples's Issues

Torus.3mf forms bad .zip

unzip reports these errors:

unzip -t torus.3mf.zip
Archive: torus.3mf.zip
warning [torus.3mf.zip]: zipfile claims to be last disk of a multi-part archive;
attempting to process anyway, assuming all parts have been concatenated
together in order. Expect "errors" and warnings...true multi-part support
doesn't exist yet (coming soon).
error [torus.3mf.zip]: missing 8589913447 bytes in zipfile
(attempting to process anyway)
error [torus.3mf.zip]: attempt to seek before beginning of zipfile
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)

Also tried with both tar and Archive Utility, and both are unable to unzip.

Please clarify the license of the sample files

I can't find any declaration of license for the sample files.

It would be useful to know what the intention is, e.g. if it's possible to distribute the sample files along with the development package in Linux distributions.

Cannot load materials example

When I try to open them, I get these errors:

could not parse file: 80004005
error #1035: Could not read ZIP file

I read them with the lib3mf_reader_readfromfileutf8 function. Any idea?

Unify 3mfverify.exe with xml-linting in lib3MF-repo

https://github.com/3MFConsortium/lib3mf/tree/XML_Schema_Validation/Tools/Schema
contains scripts to perform xml-schema validation for an individual 3dmodel.model against the xsd-files from the different published extensions.

3mfverify.exe appears to verify much more (OPC structure,…) but does not include the latest extensions.

@pencerw : Let's work on unifying the functionality from these tools.
Do you know any internals about the 3mfverify-tool? It might suffice to feed the correct schemata into it.

Undefined XML namespace in multiprop-metallic.3mf

I'm using the sample files to add new features to the 3MF importer of three.js. When working with multiprop-metallic.3mf, I've realized that selecting the child elements of pbmetallicdisplayproperties via querySelectorAll() does not work because pbmetallic is assigned to an undefined XML namespace (ms). Here is the problematic part:

<m:pbmetallicdisplayproperties id="9">
    <ms:pbmetallic name="MetalProp" metallicness="1" roughness="0.2" />
</m:pbmetallicdisplayproperties>

It would be great if the file can be fixed so I can used it to verify the loader's logic 😇

Multiproperty examples are not valid

Some of the multiproperties examples are invalid:
a. https://github.com/3MFConsortium/3mf-samples/blob/master/examples/material/multiprop-opaque.3mf has no object-level pid
b. https://github.com/3MFConsortium/3mf-samples/blob/master/examples/material/multiprop-translucent.3mf has no object-level pid and prefixes "translucent" with at “ms” namespace-prefix
c. https://github.com/3MFConsortium/3mf-samples/blob/master/examples/material/multiprop-metallic.3mf has no object-level pid and prefixes "pbmetallic" with at “ms” namespace-prefix

Create a multi-<object> part

I want to create a multi .3mf shape, I used the "Cube" code and created some kind of a loop to create multiple mesh objects but my code is not outputting anything. Since there should be one for different parts, do I have to create multiple tags? I don't see the command for it.

Tool to view contents of 3MF? (Show materials)

Is there a tool (I would need one for windows), which lets you view the contents of a 3MF?
There are plenty of 3MF viewers online but I cannot be 100% sure that they show ALL the metadata in the file - ie they seem to mostly be geared towards viewing the geometry.
The reason that I ask is that I suspect that Fusion360 is not outputting the Material when it outputs a 3MF file. Ideally, any 3MF that Fusion exports should store, for each body, the name of the material that is assigned to that body.
Seeing as 3MF is a binary file format though, I cannot easily delve into the 3MFs that I am exporting to find out.

Furthermore, in this repo, it is unclear what each of the examples actually is. For example, I assume that examples/material folder contains examples of 3MF files with material data? If it were clear exactly what each example is an example of, then I could, for example, download an example which has multiple materials in it, and load it into an online viewer and see if it shows the materials correctly. If it does, I could then load in one of my files to have more confidence as to whether or not it is actually outputting materials.

Found a incorrect sample file

I found a issue during making our own 3mf loaders:

File 3D/3dmodel.model in MUSTFAIL_Chapter3.4.1a_MissingMetadataName.3mf

  <metadata name="Undefined" >Microsoft Corporation</metadata>
  <metadata name="Title">Dice</metadata>
  <metadata name="Description">Dice 100</metadata>
  <metadata name="Copyright">© Microsoft Corporation 2015</metadata>
  <metadata name="LicenseTerms">All rights reserved</metadata>
  <metadata name="Rating" />
  <metadata name="CreationDate">2015-10-28</metadata>
  <metadata name="ModificationDate">2015-10-28</metadata>

According to its file name there should have a metadata element without a name attribute, but every elements here has a name attribute.


BTW: Can someone explains the MUSTFAIL_Chapter2.3.2c_UndefinedNameSpaceInXDS.3mf ? I looked a lot but I don't understand which place is incorrect.

How to display 3mf model in ViewPort loaded from file in C# WPF Visual Studio?

Hello,

I am currently designing a WPF app. I have a requirement to display 3mf models on ViewPort 3D. I currently stream the 3mf's xml file and display only vertex and triangles. I am trying to migrate UWP apis to use Windows.Graphics.Printing3D. Is there a way to view a 3mf model loaded from file to be displayed on the VIEWPORT3D. Currently wpf does not support 3mf models. Let me know if there is a work around.

Thank you
Shreyas

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.