Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to compile the triangle mesh generation into matlab?

Subject: How to compile the triangle mesh generation into matlab?

From: Tiên

Date: 22 Jan, 2011 03:45:08

Message: 1 of 2

Hi everybody,
I tried to compile file triangle.c into Matlab by mex -triangle.c but i did not successfully. My computer uses 32-Bit Operating System , Vista Business and I install Microsoft Visual 2008 and MatLab 7.8.0(R2009a).
 If everybody know how to compile them into MatLab, please help me to solve this problem. It is really necessary for my project, now. Everybody can get file triangle.c at
 http://www.cs.cmu.edu/~quake/triangle.html
 a .zip file (159K)

More details for this error is showed follows:
>> mex -DNO_TIMER triangle.c
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
 
C:\USERS\TIENNG~1\APPDATA\LOCAL\TEMP\MEX_RZ~1\triangle.obj
LINK : error LNK2001: unresolved external symbol mexFunction
C:\USERS\TIENNG~1\APPDATA\LOCAL\TEMP\MEX_RZ~1\templib.x : fatal error LNK1120: 1 unresolved externals
 
  C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: Link of 'triangle.mexw32' failed.
 
??? Error using ==> mex at 218
Unable to complete successfully.

Subject: How to compile the triangle mesh generation into matlab?

From: Gabriel Ruiz

Date: 16 Mar, 2011 04:53:05

Message: 2 of 2

Maybe, you can try to use this:
http://marineemlab.ucsd.edu/~kkey/Software/Triangle/index.php

I think that is an excellent option for you!

Regards!

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us