Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

DrawingTools

Guides

  • DrawingTools

Tech Notes

  • Testing for Points on Border or Interior of a Polygon

Symbols

  • Arrow3D
  • ArrowCylinder
  • ArrowSlab
  • ConicSurface
  • EmptyRectangle
  • HollowCylinder
  • HollowPillar
  • InPolygonQ
  • LineToCable
  • OnBoundaryQ
  • Patches
  • Pillar
  • Pyramid3D
  • Spin3D
  • SpinningTop
  • StackGraphics
  • StringToCurves
  • StringToPolygons
  • Wiggly
QuantumMob`DrawingTools`
LineToCable
​
LineToCable
[{
p
1
,
p
2
,…}]
makes a flexible cable connecting points {p1,p2,…} with the section of a particular shape.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
In[1]:=
line=Table[{x,0.2*Sin[x*Pi],0},{x,0,3,0.05}];
In[2]:=
Graphics3D
LineToCable
[line,"Radius"0.1]
Out[2]=
In[3]:=
poly={{0,3,-1},{0,3,1},{0,-3,1},{0,-3,-1}}/5
Out[3]=
0,
3
5
,-
1
5
,0,
3
5
,
1
5
,0,-
3
5
,
1
5
,0,-
3
5
,-
1
5

In[4]:=
Graphics3D[Polygon[poly]]
Out[4]=
In[5]:=
Graphics3DEdgeForm[],​​{Red,Polygon[poly]},​​
LineToCable
[line,"Shape"poly]​​
Out[5]=
In[6]:=
rf3=Module​​{R=10,L=26,W=16,thick=3,dat,d=0.5,t},​​dat[1]={{d,W,0.5thick},{(L-R)*0.95,W,0.5thick},{L-R,W,0.5thick}};​​dat[2]=Table[{L-R,W-R,0.5thick}+{R*Sin[t],R*Cos[t],0},​​{t,0,Pi/2,Pi/100}];​​dat[3]={{L,(W-R)*1.05,0.5thick}};​​dat[1]=Join[dat[1],dat[2],dat[3]];​​dat[2]=Map[{1,-1,1}*#&,dat[1]];​​dat[2]=Reverse[dat[2]];​​dat[1]=Join[dat[1],dat[2]];​​dat[2]=Map[{-1,1,1}*#&,dat[1]];​​dat[2]=Reverse[dat[2]];​​dat[1]=Join[dat[1],dat[2]];​​dat[1]=Map[{11,0,0}+#&,dat[1]];​​dat[2]={{0.5thick,3,0},​​{-0.5thick,3,0},​​{-0.5thick,-3,0},​​{0.5thick,-3,0}};​​
LineToCable
[dat[1],"Shape"dat[2]]​​;
In[7]:=
Graphics3D[{EdgeForm[],rf3}]
Out[7]=
RelatedGuides
▪
DrawingTools Package
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com