Read, modify, and display .STL file 3D model using c# - c#

I used Solidworks to build a 3D model and save as a .STL file. I would like to use C# to read the file and change the data while displaying the model.
Can any one give me some references?
Any help would be greatly appreciated.
Thanks in advance.

You may user batu92k's STL Viewer.
Project url is below.
https://github.com/batu92k/STL-Viewer
And also you may open stl in a text editor and modify the file by changing related parameters.

Related

Import a .step filein unity with C# code?

I would like to import a file ".step" to use it with unity 2018.3.1f1 but I don't know how to do it
I didn't found any topic.
Any one could help me please ?
.step is a cad file, right? This isn't supported by unity out of the box. You may need to buy an asset store plugin to open cad files, or roll your own importer. You would need to read up on the file format and build a new mesh based on interpretation of the file format.
Documentation on building a mesh from scratch: https://docs.unity3d.com/Manual/GeneratingMeshGeometryProcedurally.html

Information flow for Hololens data visualisation task

I'm currently trying to work with a Microsoft Hololens and I want to basically pull some data from a database, copy it into a form that I can use and then, using Unity, visualize it and have that go into the Hololens.
I have pretty limited coding experience and am looking to improve, but any resources and help you can give would be greatly appreciated!
So my basic understanding of how to go about this task is to:
Find the form of the data and put it into a .csv file
Draw data from the .csv file and use it to create a graph in Unity. I don't have a graphing asset to hand so if you can recommend one (free if possible!) let me know.
Using Unity's ability to display to the Hololens to show this as UI element
If this all works I also want to incorporate a system by which the image processing can be used to look at something and therefore generate this graph - I was thinking QR codes or something similar.
Do you guys have any advice, pitfalls and/or resources that could help me?
Thank you!
As said in the comments, the questions is very wide.
But, here you can get some points to start:
You can get the data (or the file) from a WebAPI or any REST service.
You can process as that dataset as you need in Unity.
You can search any graph asset in the Unity Asset Store and send the data to it and display in the hololens.
You can use the ZXing library to read the QR code generated to display the graph as well.
Hope this helps.

How to Copy Selected Entities From One Drawing to Another in Autocad Using C#

I need to Export some entities from the source drawing file to another drawing file in autocad. I am interacting with autocad in interface(COM) type. Can anybody give some suggestion to do this.
Thanks in Advance...
AcadDatabase.CopyObjects should work for you. There is a documentation and sample at http://help.autodesk.com/view/ACD/2016/ENU/?guid=GUID-D9E0A89C-2D81-4141-8B88-B9AC6EAABD62

How do I edit a .PDF file while its a resource?

I've been looking around on the web for an answer to a perplexing problem. I'm trying to code a program in C# and I'm looking for a snippet of code that'll take any information a user would input, i.e using a textbox or a check box, and transfer said information onto a .PDF file that I've added as a resource.
Right now I'm using Visual Studio 2008 for my coding, any help would be appreciated.
You can use librairies to create PDF on the fly:
ITextSharp
PDF's are a proprietary format. PDF4Net is a pretty good library for merging information via XDF into PDF's, but you are going to have a lot of trouble trying to do this on your own natively.

Import any 3d file at runtime in WPF

I asked a similair question earilier, but it was not generic enough, so here's another attempt.
I currently have a whole bunch of 3d .obj and .jpg files which I want to display in my WPF application. However, I want to do this at runtime, so converting them using Blend is not an option.
I don't mind having to convert to other types of 3d files, as long as this can be done at runtime (either programmaticly or by using a command line tool).
So I guess my question is: Is there any way to import a 3d file in WPF at runtime?
Thanks!
I don't think there's a built in way. You'll most likely have to write an importer for your own specific needs. You can find some file format information here> http://en.wikipedia.org/wiki/Wavefront_.obj_file
Thanks to #MattDavey
I managed to get The HelixToolkit (http://helixtoolkit.codeplex.com/) to work and got what I wanted using the ModelImporter.Load method.

Categories

Resources