Example 2143: Calculation of stripe data using existing polylines from image


The comfile run by this example is as follows:

#Example_2143                                                                                                                       
                                                                                                                                    
fem define window;c on 1                                                                                                            
fem define poly;r;example_2143_defstr02;example    #Read in bezier polylines                                                            
fem list poly                                                                                                                       
#fem draw poly index 1    !Repeat this as desired for                                                                               
#                              polylines 2..23                                                                                      
fem group poly 1..23 as group1                                                                                                      
fem li poly group                                                                                                                   
#    Next discretize this group of bezier polylines into 400 nearly                                                                 
#    equal arc-length spaced data points                                                                                            
fem define data;c stripe group group1 total 400                                                                                     
fem draw data        #Display this first set of points                                                                              
fem define data;w;example_2143_defrm400 geom                                                                                    
fem cancel poly                                                                                                                     
fem cancel data                                                                                                                     
fem define poly;r;example_2143_undefstr02;example   #read in second set                                                                 
#                                                of polylines                                                                       
fem list poly                                                                                                                       
fem group poly 1..23 as group2                                                                                                      
#    Next discretize the second group of bezier polylines into 400                                                                  
#    points using spacing parameters saved from previous call                                                                       
fem define data;c stripe group group2 total 0    #The zero at the end                                                               
#                                                 means spacing                                                                     
#                                                 parameters are reused                                                             
fem draw;add data   rgb=red                                                                                                         
fem define data;w;example_2143_undefrm400 example geom                                                                                  
fem quit                                                                                                                            

Files used by this example are:

Name                            Modified     Size

example_2143.com 22-Jun-2000 3.6k example_2143_defstr02.ipplin 10-Apr-2000 32k example_2143_undefstr02.ipplin 10-Apr-2000 32k

Download the entire example:

Name                           Modified     Size

examples_2_21_214_2143.tar.gz 19-Aug-2006 4.3k

Html last generated: Sun Mar 6 05:50:08 2016

Input last modified: Thu Jun 22 15:13:34 2000


CMISS Help / Examples / 2 / 21 / 214 / 2143