[vtkusers] Re: vtkusers Digest, Vol 5, Issue 62

Chau Nguyen cvnguyen74 at yahoo.com
Fri Sep 24 13:28:51 EDT 2004


Hi All,
I am new to vtk and have the follownig:
I have an OOGL file and would like to read it into vtk
and then save it as ppm. would someone please show me
an example.  much appreciated.
Jacob


vtkusers-request at vtk.org wrote:Send vtkusers mailing list submissions to
vtkusers at vtk.org

To subscribe or unsubscribe via the World Wide Web, visit
http://www.vtk.org/mailman/listinfo/vtkusers
or, via email, send a message with subject or body 'help' to
vtkusers-request at vtk.org

You can reach the person managing the list at
vtkusers-owner at vtk.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of vtkusers digest..."


Today's Topics:

1. A couple questions about vtkPanel and vtk3DSImporter
(Terry Jordan)
2. Re: Odd linking errors when using the IO library with C++
(Mathieu Malaterre)


----------------------------------------------------------------------

Message: 1
Date: Fri, 24 Sep 2004 10:59:57 -0400
From: "Terry Jordan" 
Subject: [vtkusers] A couple questions about vtkPanel and
vtk3DSImporter
To: 
Message-ID: 
Content-Type: text/plain; charset=US-ASCII

I am writing a java applications with a vtkPanel in which a
vtk3DSImporter is rendered.

Questions:
1) Does vtk3DSImporter support texture maps? If so how can it be done?

2) I want to remove 3DS models from my vtkPanel. How can this be done?

A snippet of my code:

renderPanel = new vtkPanel();
the3dsImporter = new vtk3DSImporter();
the3dsImporter.ComputeNormalsOn();
the3dsImporter.SetRenderWindow
renderPanel.GetRenderWindow());
the3dsImporter.SetFileName(filename.3ds);
the3dsImporter.Read();

Thanks in advance.

Terry E. Jordan Jr.
Computer Engineer/Computer Scientist
REM Engineering Services
Morgantown, WV 26505


------------------------------

Message: 2
Date: Fri, 24 Sep 2004 11:06:20 -0400
From: Mathieu Malaterre 
Subject: Re: [vtkusers] Odd linking errors when using the IO library
with C++
To: Morten Stakkeland , vtkusers

Message-ID: <415437EC.7010001 at kitware.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Morten,

Are you using cmake? If so:

FIND_PACKAGE(VTK)
IF (VTK_FOUND)
INCLUDE (${VTK_USE_FILE})
ENDIF (VTK_FOUND)


ADD_EXECUTABLE(tiff tiff.cxx )
TARGET_LINK_LIBRARIES (tiff
vtkIO
)

HTH
Mathieu



Morten Stakkeland wrote:
> Thanks. Pretty easy when you know how to do it ;-D
> 
> Morten
> 
> On Fri, 24 Sep 2004, Mathieu Malaterre wrote:
> 
> 
>>Morten,
>>
>> You need to link your exe to vtkIO.
>>
>>HTH
>>Mathieu
>>
>>Morten Stakkeland wrote:
>>
>>>Hi,
>>>
>>>I am trying to set up VTK 4.2 in a cygwin environment in windows XP (for
>>>the first time). Everything seems to work perfectly, except when I try
>>>importing any class from the IO-library. For instance when trying to
>>>compile the following code:
>>>
>>>#include
>>>int main()
>>>{
>>> vtkTIFFReader* test=vtkTIFFReader::New();
>>>}
>>>
>>>I get the following output:
>>>
>>>$ make
>>>Building dependencies cmake.check_depends...
>>>-- Loading VTK CMake commands
>>>-- Loading VTK CMake commands - done
>>>Building object file MarFrame.o...
>>>Building executable /cygdrive/p/visual/mar_envir/MarFrame.exe...
>>>MarFrame.o(.text+0x1f):MarFrame.cpp: undefined reference to
>>>`__imp___ZN13vtkTIFFReader3NewEv'
>>>collect2: ld returned 1 exit status
>>>make[1]: *** [/cygdrive/p/visual/mar_envir/MarFrame.exe] Error 1
>>>make: *** [default_target] Error 2
>>>
>>>The same linking error appears whenever I try to instantiate a class from
>>>the IO library. Any help would be appreciated...
>>>
>>>
>>>Regards,
>>>Morten
>>>_______________________________________________
>>>This is the private VTK discussion list.
>>>Please keep messages on-topic. Check the FAQ at: 
>>>Follow this link to subscribe/unsubscribe:
>>>http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>
>>
>>
>>
> 





------------------------------

_______________________________________________
vtkusers mailing list
vtkusers at vtk.org
http://www.vtk.org/mailman/listinfo/vtkusers


End of vtkusers Digest, Vol 5, Issue 62
***************************************


		
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040924/694480e7/attachment.htm>


More information about the vtkusers mailing list