[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Convert 3D Patch Data to 3d array/matrix (from surf, patch, or VRML import)

Posted on 2009-04-24
Medium Priority
Last Modified: 2013-11-25
Good day everyone,

I currently have several 3D meshes/patches I've created by either:
a) Generating them with patch/surf commands
b) Importing VRML files exported from 3D graphics design applications, like MAYA

I am trying to find a way to convert these 3D polygon-based models into a 3D array of voxels so that I can essentially define a 3D coordinate, and know the pixel intensity value at that point. This would allow me to essentially quantize the 3D model into discrete points, and perform histogram analysis on it.

Any help would be very much appreciated. Thank you in advance,
Question by:dogbertius
  • 2
LVL 15

Accepted Solution

yuk99 earned 1500 total points
ID: 24228402
Can you give an example of how your data look like? May be you can provide a code to generate small dataset, or just attach a small mat-file (rename it to txt).

BTW, did you have a look at TMW Virtual Reality Toolbox (now it's Simulink 3D Animation)?

Author Comment

ID: 24228457
Yes, I did. Basically, I have to use the Virtual Reality Toolbox to import the VRML files that Maya, 3d Studio, etc, export. I'm able to display those, but the basic premise is that I have to convert patch data to a 3D array.

Thank you.
LVL 15

Expert Comment

ID: 24228668
Please give more information about your dataset. Which class are you using in Matlab? What node type? What is a structure of you VRML?

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Six Sigma Control Plans
Suggested Courses
Course of the Month19 days, 21 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question