5
$\begingroup$

Studying a new GeometricScene command, I try

ClearAll["Global`*"];
GeometricScene[{a -> {0, 0}, b -> {1, 0}, c -> {1, 1}, d -> {0, 1}, 
e -> {1/2, 1}}, {Rectangle[a, c], Triangle[{a, b, d}]}]

which works well (see here). After that I execute

ClearAll["Global`*"];GeometricScene[{a -> {0, 0}, b -> {1, 0}, c -> {1, 1}, d -> {0, 1}, 
e -> {1/2, 1}}, {Rectangle[a, c], Triangle[{a, e, d}]}]

which returns the input instead of a picture without any communication.

What is the reason of these different results?

$\endgroup$
3
  • $\begingroup$ Please file a bug report about the second input failing. $\endgroup$
    – Jason B.
    Commented Dec 7, 2021 at 17:52
  • 1
    $\begingroup$ @JasonB.: Done. Only thanks, no reply with [CASE ....]. $\endgroup$
    – user64494
    Commented Dec 7, 2021 at 18:00
  • $\begingroup$ I reproduce the bug with version 13.1.0 on Windows 10 x64. $\endgroup$ Commented Sep 15, 2022 at 3:46

2 Answers 2

3
$\begingroup$

Just an update from 13.2 - see the screenshot below

screenshot

$\endgroup$
2
  • 2
    $\begingroup$ Nice to see it. Works also in 13.2 on Windows 10. $\endgroup$
    – user64494
    Commented Jan 10, 2023 at 6:31
  • $\begingroup$ @user64494 thanks for letting me know. it's good to know that it was version dependent and not OS related! $\endgroup$
    – bmf
    Commented Jan 10, 2023 at 6:32
-1
$\begingroup$

Depends on what version of Mathematica You are using.

This wrapper for graphical output is needed in mine:

ClearAll["Global`*"];
RandomInstance[
 GeometricScene[{a -> {0, 0}, b -> {1, 0}, c -> {1, 1}, d -> {0, 1}, 
   e -> {1/2, 1}}, {Rectangle[a, c], Triangle[{a, b, d}]}], 
 RandomSeeding -> 1]

graphics output with Randominstance and RandomSeeding

$\endgroup$
4
  • $\begingroup$ Thank you. Works in 13 on Windows 10. Unfortunately, I don't find any description of the RandomSeeding -> 1 option in the documentation to RandomSeeding. $\endgroup$
    – user64494
    Commented Apr 18, 2022 at 4:00
  • $\begingroup$ The RandomSeeding -> 2 and RandomSeeding -> 1234 and RandomSeeding -> Automatic options also work here. $\endgroup$
    – user64494
    Commented Apr 18, 2022 at 6:49
  • $\begingroup$ Unfortunately, this is not it: the question is about GeometricScene[{a -> {0, 0}, b -> {1, 0}, c -> {1, 1}, d -> {0, 1}, e -> {1/2, 1}}, {Rectangle[a, c], Triangle[{a, e, d}]}], not about GeometricScene[{a -> {0, 0}, b -> {1, 0}, c -> {1, 1}, d -> {0, 1}, e -> {1/2, 1}}, {Rectangle[a, c], Triangle[{a, b, d}]}]. The command RandomInstance[ GeometricScene[{a -> {0, 0}, b -> {1, 0}, c -> {1, 1}, d -> {0, 1}, e -> {1/2, 1}}, {Rectangle[a, c], Triangle[{a, e, d}]}], RandomSeeding -> 1] still returns the input in version 13 on Windows 10. $\endgroup$
    – user64494
    Commented Apr 18, 2022 at 7:09
  • $\begingroup$ RandomInstance does nothing in your code, because the GeometricScene specification already contains explicit values for all points. $\endgroup$ Commented Sep 15, 2022 at 3:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.