Rank: 1715 based on 34 downloads (last 30 days) and 1 file submitted
photo

Ricky Zhang

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Ricky
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Sep 2006 Screenshot Read VRML 2.0 to Matlab 7 Read VRML 2.0 to Matlab 7. Author: Ricky Zhang vrml2, matlab 7, geometry, data exploration, graphics, graphical data explor... 34 7
  • 4.0
4.0 | 1 rating
Comments and Ratings on Ricky's Files View all
Updated File Comment by Comments Rating
23 Nov 2010 Read VRML 2.0 to Matlab 7 Read VRML 2.0 to Matlab 7. Author: Ricky Zhang planetx

Do you have ReadVRML2_0.dll 64bit version ?
I got this error in Matlab 7.11
"Microsoft Visual C++ 2005 or 2008 is required to use this feature.
"
I think that is because of I am using Matlab 64bit version.

19 Oct 2010 Read VRML 2.0 to Matlab 7 Read VRML 2.0 to Matlab 7. Author: Ricky Zhang Mungau, Franklin

This code works well for MATLAB 7.0 but it is important that the wrl file defines each vertex and polygon on a new line; otherwise some vertices and polygons will be ignored! Confirm this by opening the wrl file in the MATLAB editor. In addition, I found that it may be necessary to modify the h file generation as follows (i.e. excluding the file extensions):

%Generate h-file (handle pointing to) the mfile
hReadVRML20 = @ReadVRML20;

%Save h-file to Current Directory
save hReadVRML20.h hReadVRML20;
loadlibrary('ReadVRML2_0','hReadVRML20');
chk = libisloaded('ReadVRML2_0');

if chk
    disp('The dll loaded successfully')
else
    disp('The dll was not loaded successfully')
end

%Now able to call the ReadVRML20(vrml_fn) m-file
o = ReadVRML20('my_file.wrl');

% plot the 3D world
x = o.Vertex(1,:);
y = o. Vertex (2,:);
z = o. Vertex (3,:);
tri = o.Face';
trimesh(tri,x,y,z,'edgecolor','black');

% Unload the library (after use) and free up the memory
unloadlibrary ReadVRML2_0

   

03 Jul 2009 Read VRML 2.0 to Matlab 7 Read VRML 2.0 to Matlab 7. Author: Ricky Zhang VanB, Amy

"16 Jan 2009 Rob This would be great, except is there a header file that should be included? How do I load a .dll ?"

Rob:
You'll find the following code useful:

%Generate h-file (handle pointing to)the mfile
hReadVRML20 = @ReadVRML20;%('10divlateralAnkleQuick.wrl');

%Save h-file to Current Directory
save hReadVRML20.h hReadVRML20;

%Load dll library
loadlibrary('ReadVRML2_0.dll','hReadVRML20.h');

%Now able to call the ReadVRML20(vrml_fn) m-file
%ex: ReadVRML20('10divlateralAnkleQuick.wrl');

16 Jan 2009 Read VRML 2.0 to Matlab 7 Read VRML 2.0 to Matlab 7. Author: Ricky Zhang Rob

This would be great, except is there a header file that should be included? How do I load a .dll ?

22 Sep 2008 Read VRML 2.0 to Matlab 7 Read VRML 2.0 to Matlab 7. Author: Ricky Zhang Balachander, Neerja

Hi there, Could you recompile it so it works for Mac? Thnx

Top Tags Applied by Ricky
data exploration, geometry, graphical data exploration, graphics, matlab 7
Files Tagged by Ricky
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Sep 2006 Screenshot Read VRML 2.0 to Matlab 7 Read VRML 2.0 to Matlab 7. Author: Ricky Zhang vrml2, matlab 7, geometry, data exploration, graphics, graphical data explor... 34 7
  • 4.0
4.0 | 1 rating

Contact us at files@mathworks.com