CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Modeling

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 02-06-2017, 05:48 AM
Danny_CDL Danny_CDL is offline
Registered User
 
Join Date: Jan 2017
Posts: 2
3D points

We have an excel with coordinates of 3D points and there colour. Is it possible to import this table as 3D points (with different color)?
Reply With Quote
  #2  
Old 02-07-2017, 01:04 AM
Marten Marten is offline
Registered User
 
Join Date: Feb 2006
Location: Tilburg, The Netherlands
Posts: 139
Re: 3D points

Yes, you can create 3D points from a table, but you have to write some lisp code to do this. However, as far as I know, you cannot set a color of a 3D point. It seems you are trying to visualize some data in 3D space. I think matlab or octave will be a better fit to accomplish this. Or you might be able to use Wolfram Alpha: http://reference.wolfram.com/language/ref/ListPointPlot3D.html

Regards,

Marten
Reply With Quote
  #3  
Old 02-08-2017, 02:47 AM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
Re: 3D points

if it's also ok to use coordinate systems instead of 3d points, you can have the color, too.
Copy-paste the code below in a text file with extension .lsp, and drag that on the Modeling Viewport to see a demo.
If you're good in excel, you can use the syntax to create a lisp file with the points, without further lisp knowledge :-)

Code:
(create_part :name "p1")
(pos_create_coordinate_system :action :create :display-ui :owner (sd-pathname-to-obj "/p1") :name "point1" :pt_dir :point (gpnt3d 100 50 75) :w_axis :z  :u_axis :x)
(change_coordinate_system_properties :coord_sys (sd-pathname-to-obj "/p1/point1") :color 3421438 :done :size 1)
(pos_create_coordinate_system :action :create :display-ui :owner (sd-pathname-to-obj "/p1") :name "point2" :pt_dir :point (gpnt3d 10 20 30)  :w_axis :z  :u_axis :x)
(change_coordinate_system_properties :coord_sys (sd-pathname-to-obj "/p1/point2") :color 0 :done :size 5)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:53 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.