Users:Geometry Generation/NURBS

From Carat++ Public Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "=== Input Example === Example of a complete input block: <pre> !################################################################### !#### NURBS-BLOCK ...")
 
Line 1: Line 1:
 +
== 1D: Curves ==
 
=== Input Example ===
 
=== Input Example ===
  
Line 17: Line 18:
 
   CTRLPT  3  1.0000000000000000e+01  0.0000000000000000e+00  0.0000000000000000e+00  1.0000000000000000e+00
 
   CTRLPT  3  1.0000000000000000e+01  0.0000000000000000e+00  0.0000000000000000e+00  1.0000000000000000e+00
 
!===================================================================
 
!===================================================================
 +
</pre>
 +
 +
== 2D: Surfaces ==
 +
=== Input Example ===
  
 +
Example of a complete input block:
 +
<pre>
 +
!###################################################################
 +
!####                        NURBS-BLOCK                        ####
 +
!###################################################################
 
NURBS_PATCH  2 : NURBS_2D
 
NURBS_PATCH  2 : NURBS_2D
 
   CTRL_PTS = CTRL_PTS_DEF  2
 
   CTRL_PTS = CTRL_PTS_DEF  2
Line 36: Line 46:
 
   CTRLPT  6  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00  1.0000000000000000e+00
 
   CTRLPT  6  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00  1.0000000000000000e+00
 
!===================================================================
 
!===================================================================
 
NURBS_PATCH  3 : NURBS_3D
 
  CTRL_PTS = CTRL_PTS_DEF  3
 
  NCTRL =  2
 
  MCTRL =  1
 
  LCTRL =  1
 
  PDEG  =  2
 
  QDEG  =  1
 
  RDEG  =  1
 
  UKNOT =  0, 0, 0, 10, 10, 10
 
  VKNOT =  0,0,1,1
 
  WKNOT =  0,0,1,1
 
!===================================================================
 
CTRL_PTS_DEF  3
 
  CTRLPT  1  0.0000000000000000e+00  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00
 
  CTRLPT  2  1.0000000000000000e+01  1.0000000000000000e+01  0.0000000000000000e+00  7.0710678118654757e-01
 
  CTRLPT  3  1.0000000000000000e+01  0.0000000000000000e+00  0.0000000000000000e+00  1.0000000000000000e+00
 
  CTRLPT  4  0.0000000000000000e+00  1.0000000000000000e+01  1.0000000000000000e+00  1.0000000000000000e+00
 
  CTRLPT  5  1.0000000000000000e+01  1.0000000000000000e+01  1.0000000000000000e+00  7.0710678118654757e-01
 
  CTRLPT  6  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00  1.0000000000000000e+00
 
  CTRLPT  7  0.0000000000000000e+00  2.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00
 
  CTRLPT  8  2.0000000000000000e+01  2.0000000000000000e+01  0.0000000000000000e+00  7.0710678118654757e-01
 
  CTRLPT  9  2.0000000000000000e+01  0.0000000000000000e+00  0.0000000000000000e+00  1.0000000000000000e+00
 
  CTRLPT  10 0.0000000000000000e+00  2.0000000000000000e+01  1.0000000000000000e+00  1.0000000000000000e+00
 
  CTRLPT  11 2.0000000000000000e+01  2.0000000000000000e+01  1.0000000000000000e+00  7.0710678118654757e-01
 
  CTRLPT  12 2.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00  1.0000000000000000e+00
 
!===================================================================
 
 
 
!###################################################################
 
!###################################################################
 
!####                        TRIMMING                          ####
 
!####                        TRIMMING                          ####
Line 144: Line 126:
 
   CTRLPT_PAR  7    0.0000000000e+00    1.0000000000e+01
 
   CTRLPT_PAR  7    0.0000000000e+00    1.0000000000e+01
 
   CTRLPT_PAR  8    0.0000000000e+00    0.0000000000e+00
 
   CTRLPT_PAR  8    0.0000000000e+00    0.0000000000e+00
 +
</pre>
 +
 +
== 3D: Volumes == 
 +
 +
=== Input Example ===
 +
 +
Example of a complete input block:
 +
<pre>
 +
!###################################################################
 +
!####                        NURBS-BLOCK                        ####
 +
!###################################################################
 +
NURBS_PATCH  3 : NURBS_3D
 +
  CTRL_PTS = CTRL_PTS_DEF  3
 +
  NCTRL =  2
 +
  MCTRL =  1
 +
  LCTRL =  1
 +
  PDEG  =  2
 +
  QDEG  =  1
 +
  RDEG  =  1
 +
  UKNOT =  0, 0, 0, 10, 10, 10
 +
  VKNOT =  0,0,1,1
 +
  WKNOT =  0,0,1,1
 +
!===================================================================
 +
CTRL_PTS_DEF  3
 +
  CTRLPT  1  0.0000000000000000e+00  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00
 +
  CTRLPT  2  1.0000000000000000e+01  1.0000000000000000e+01  0.0000000000000000e+00  7.0710678118654757e-01
 +
  CTRLPT  3  1.0000000000000000e+01  0.0000000000000000e+00  0.0000000000000000e+00  1.0000000000000000e+00
 +
  CTRLPT  4  0.0000000000000000e+00  1.0000000000000000e+01  1.0000000000000000e+00  1.0000000000000000e+00
 +
  CTRLPT  5  1.0000000000000000e+01  1.0000000000000000e+01  1.0000000000000000e+00  7.0710678118654757e-01
 +
  CTRLPT  6  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00  1.0000000000000000e+00
 +
  CTRLPT  7  0.0000000000000000e+00  2.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00
 +
  CTRLPT  8  2.0000000000000000e+01  2.0000000000000000e+01  0.0000000000000000e+00  7.0710678118654757e-01
 +
  CTRLPT  9  2.0000000000000000e+01  0.0000000000000000e+00  0.0000000000000000e+00  1.0000000000000000e+00
 +
  CTRLPT  10 0.0000000000000000e+00  2.0000000000000000e+01  1.0000000000000000e+00  1.0000000000000000e+00
 +
  CTRLPT  11 2.0000000000000000e+01  2.0000000000000000e+01  1.0000000000000000e+00  7.0710678118654757e-01
 +
  CTRLPT  12 2.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00  1.0000000000000000e+00
 +
!===================================================================
 
</pre>
 
</pre>

Revision as of 11:11, 25 November 2016

Contents

1D: Curves

Input Example

Example of a complete input block:

!###################################################################
!####                        NURBS-BLOCK                        ####
!###################################################################
NURBS_PATCH  1 : NURBS_1D
  CTRL_PTS = CTRL_PTS_DEF  1
  NCTRL =  2
  PDEG  =  2
  UKNOT =  0.0000000000000000e+00, 0.0000000000000000e+00, 0.0000000000000000e+00, 3.1415926535897931e+01, 3.1415926535897931e+01, 3.1415926535897931e+01
!===================================================================
CTRL_PTS_DEF  1
  CTRLPT  1  0.0000000000000000e+00  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  2  1.0000000000000000e+01  1.0000000000000000e+01  0.0000000000000000e+00  7.0710678118654757e-01
  CTRLPT  3  1.0000000000000000e+01  0.0000000000000000e+00  0.0000000000000000e+00  1.0000000000000000e+00
!===================================================================

2D: Surfaces

Input Example

Example of a complete input block:

!###################################################################
!####                        NURBS-BLOCK                        ####
!###################################################################
NURBS_PATCH  2 : NURBS_2D
  CTRL_PTS = CTRL_PTS_DEF  2
  NCTRL =  2
  MCTRL =  1
  PDEG  =  2
  QDEG  =  1
  UKNOT =  0.0, 0.0, 0.0, 10.0, 10.0, 10.0
  VKNOT =  0,0,1,1
  TRIMMING = B_REP 1
!===================================================================
CTRL_PTS_DEF  2
  CTRLPT  1  0.0000000000000000e+00  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  2  1.0000000000000000e+01  1.0000000000000000e+01  0.0000000000000000e+00  7.0710678118654757e-01
  CTRLPT  3  1.0000000000000000e+01  0.0000000000000000e+00  0.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  4  0.0000000000000000e+00  1.0000000000000000e+01  1.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  5  1.0000000000000000e+01  1.0000000000000000e+01  1.0000000000000000e+00  7.0710678118654757e-01
  CTRLPT  6  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00  1.0000000000000000e+00
!===================================================================
!###################################################################
!####                        TRIMMING                           ####
!###################################################################
B_REP 1
 B_REP_LOOP   1         0   1   TRUE   2   TRUE   3   TRUE   4   TRUE
!###################################################################
!####                  NURBS-BLOCK-PARAMETER                    ####
!###################################################################
NURBS_PATCH_PAR  1 : NURBS_1D
  CTRL_PTS = CTRL_PTS_PAR  1
  NCTRL =  1
  PDEG  =  1
  UKNOT =  0.0000000000e+00, 0.0000000000e+00, 1.0000000000e+01, 1.0000000000e+01
!===================================================================
CTRL_PTS_PAR  1
  CTRLPT_PAR_ID  1   
  CTRLPT_PAR_ID  2 
!===================================================================
!###################################################################
!####                  NURBS-BLOCK-PARAMETER                    ####
!###################################################################
NURBS_PATCH_PAR  2 : NURBS_1D
  CTRL_PTS = CTRL_PTS_PAR  2
  NCTRL =  1
  PDEG  =  1
  UKNOT =  0.0000000000e+00, 0.0000000000e+00, 1.0000000000e+01, 1.0000000000e+01
!===================================================================
CTRL_PTS_PAR  2
  CTRLPT_PAR_ID  3  
  CTRLPT_PAR_ID  4  
!===================================================================
!###################################################################
!####                  NURBS-BLOCK-PARAMETER                    ####
!###################################################################
NURBS_PATCH_PAR  3 : NURBS_1D
  CTRL_PTS = CTRL_PTS_PAR  3
  NCTRL =  1
  PDEG  =  1
  UKNOT =  0.0000000000e+00, 0.0000000000e+00, 10, 10
!===================================================================
CTRL_PTS_PAR  3
  CTRLPT_PAR_ID  5  
  CTRLPT_PAR_ID  6  
!===================================================================
!###################################################################
!####                  NURBS-BLOCK-PARAMETER                    ####
!###################################################################
NURBS_PATCH_PAR  4 : NURBS_1D
  CTRL_PTS = CTRL_PTS_PAR  4
  NCTRL =  1
  PDEG  =  1
  UKNOT =  0.0000000000e+00, 0.0000000000e+00, 1.0000000000e+01, 1.0000000000e+01
!===================================================================
CTRL_PTS_PAR  4
  CTRLPT_PAR_ID  7  
  CTRLPT_PAR_ID  8  
!===================================================================
!###################################################################
!####                  NURBS-BLOCK-PARAMETER                    ####
!###################################################################
NURBS_PATCH_PAR  5 : NURBS_1D
  CTRL_PTS = CTRL_PTS_PAR  5
  NCTRL =  1
  PDEG  =  1
  UKNOT =  0.0000000000e+00, 0.0000000000e+00, 10, 10
!===================================================================
CTRL_PTS_PAR  5
  CTRLPT_PAR_ID  9  
  CTRLPT_PAR_ID  10  
!===================================================================
!===================================================================
CTRL_PTS_PAR_DEF
  CTRLPT_PAR  1    0.0000000000e+00    0.0000000000e+00
  CTRLPT_PAR  2    1.0000000000e+01    0.0000000000e+00
  CTRLPT_PAR  3    1.0000000000e+01    0.0000000000e+00
  CTRLPT_PAR  4    1.0000000000e+01    1.0000000000e+01
  CTRLPT_PAR  5    1.0000000000e+01    1.0000000000e+01
  CTRLPT_PAR  6    0.0000000000e+00    1.0000000000e+01
  CTRLPT_PAR  7    0.0000000000e+00    1.0000000000e+01
  CTRLPT_PAR  8    0.0000000000e+00    0.0000000000e+00

3D: Volumes

Input Example

Example of a complete input block:

!###################################################################
!####                        NURBS-BLOCK                        ####
!###################################################################
NURBS_PATCH  3 : NURBS_3D
  CTRL_PTS = CTRL_PTS_DEF  3
  NCTRL =  2
  MCTRL =  1
  LCTRL =  1
  PDEG  =  2
  QDEG  =  1
  RDEG  =  1
  UKNOT =  0, 0, 0, 10, 10, 10
  VKNOT =  0,0,1,1
  WKNOT =  0,0,1,1
!===================================================================
CTRL_PTS_DEF  3
  CTRLPT  1  0.0000000000000000e+00  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  2  1.0000000000000000e+01  1.0000000000000000e+01  0.0000000000000000e+00  7.0710678118654757e-01
  CTRLPT  3  1.0000000000000000e+01  0.0000000000000000e+00  0.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  4  0.0000000000000000e+00  1.0000000000000000e+01  1.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  5  1.0000000000000000e+01  1.0000000000000000e+01  1.0000000000000000e+00  7.0710678118654757e-01
  CTRLPT  6  1.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  7  0.0000000000000000e+00  2.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  8  2.0000000000000000e+01  2.0000000000000000e+01  0.0000000000000000e+00  7.0710678118654757e-01
  CTRLPT  9  2.0000000000000000e+01  0.0000000000000000e+00  0.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  10 0.0000000000000000e+00  2.0000000000000000e+01  1.0000000000000000e+00  1.0000000000000000e+00
  CTRLPT  11 2.0000000000000000e+01  2.0000000000000000e+01  1.0000000000000000e+00  7.0710678118654757e-01
  CTRLPT  12 2.0000000000000000e+01  0.0000000000000000e+00  1.0000000000000000e+00  1.0000000000000000e+00
!===================================================================




Whos here now:   Members 0   Guests 0   Bots & Crawlers 1
 
Personal tools
Content for Developers