I am attempting to use a text character as the base of a three-dimensional prism:
$Version
(* 14.0.0 for Microsoft Windows (64-bit) (December 13, 2023) *)
Echo[rtext = BoundaryDiscretizeGraphics[Text["1"], _Text], "dim rtext:", RegionDimension];
Echo[rline = Line[{{0}, {1}}], "dim rline:", RegionDimension];
(*
» dim rtext: 2
» dim rline: 1
*)
RegionProduct[rtext, rline]
DiscretizeRegion@%
(*
Unevaluated RegionProduct[ «graphical ‹1›», Line[{{0},{1}}] ]
Error message: DiscretizeRegion::drf: DiscretizeRegion was unable to discretize the region RegionProduct[,Line[{{0},{1}}]].
Unevaluated DiscretizeRegion[ RegionProduct[ «graphical ‹1›», Line[{{0},{1}}] ] ]
*)
My expectations were:
- a 2D-boundary of the digit I used in
rtext(Polygonor, if the digit shape has "holes",FilledCurve) as the result ofBoundaryDiscretizeGraphics(that looks fine); - a 1D-line in
rline, which also looks fine; - a 3D-body, a prism, as the result of
RegionProduct, which didn't happen; and - a mesh version of the body from
DiscretizeRegion, which also didn't happen.
Clearly I am doing something wrong, but I have done nothing but reading docs, googling, searching SE and trying ever weirder ideas for the past two days and am no closer to a solution. Any help would be very welcome.
Thanks,
Felix.
