Skip to content

[Bug fixes] Circle anchors are detached from circle elements within ortho() function. #1050

@hexiongwu1995

Description

@hexiongwu1995

Circle anchors are detached from circle elements within ortho() function. If possible, please provide some insight into this issue. I'm very thankful to the members of this development team for their contributions.

#set page(paper:"a4", flipped:true, margin:0.2cm)
#set align(center+horizon)

#import "@preview/cetz:0.4.2"
#cetz.canvas({
import cetz.draw:*
import cetz.angle:*
import calc:*

scale(x:1.5,y:1.5,z:1.5)

ortho(x:300deg, y:0deg, z:280deg,{
let mark-style= ( mark:(end:(symbol:"curved-stealth", fill:black, scale:0.5) ) ) 
line((0,0,0), (4,0,0), name:"x",..mark-style, stroke:(dash:"dashed")) 
line((0,0,0), (0,4,0), name:"y",..mark-style, stroke:(dash:"dashed") ) 
line((0,0,0), (0,0,4), name:"z",..mark-style, stroke:(dash:"dashed") ) 
content((rel:(0.3,0,0), to: "x.end"), $x$) 
content((rel:(0,0.3,0), to: "y.end"), $y$) 
content((rel:(0,0,0.3), to: "z.end"), $z$) 

let Rdivision=10 
for k in range(Rdivision) {
let Rinterval= 2*pi/Rdivision
scope({
rotate(z:k*Rinterval) ;
on-yz(x:0, {circle((0,4), radius:0.8cm, name:"cir"); line("cir.south","cir.north", stroke:(dash:"dotted"));line("cir.west","cir.east", stroke:(dash:"dashed"))} 

) }) } 

}) })
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions